diff options
author | FearlessTobi <thm.frey@gmail.com> | 2022-08-27 03:31:17 +0200 |
---|---|---|
committer | FearlessTobi <thm.frey@gmail.com> | 2022-08-27 03:31:17 +0200 |
commit | 839e1faf491776f4e2348c46773c248644e260ba (patch) | |
tree | dab0425ff7e8f6817d0c363c59107adb39785ef2 /src/core/core.cpp | |
parent | network: Use lower timeout for enet_host_service (diff) | |
download | yuzu-839e1faf491776f4e2348c46773c248644e260ba.tar yuzu-839e1faf491776f4e2348c46773c248644e260ba.tar.gz yuzu-839e1faf491776f4e2348c46773c248644e260ba.tar.bz2 yuzu-839e1faf491776f4e2348c46773c248644e260ba.tar.lz yuzu-839e1faf491776f4e2348c46773c248644e260ba.tar.xz yuzu-839e1faf491776f4e2348c46773c248644e260ba.tar.zst yuzu-839e1faf491776f4e2348c46773c248644e260ba.zip |
Diffstat (limited to 'src/core/core.cpp')
-rw-r--r-- | src/core/core.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/core/core.cpp b/src/core/core.cpp index ea32a4a8d..e651ce100 100644 --- a/src/core/core.cpp +++ b/src/core/core.cpp @@ -319,10 +319,19 @@ struct System::Impl { if (app_loader->ReadTitle(name) != Loader::ResultStatus::Success) { LOG_ERROR(Core, "Failed to read title for ROM (Error {})", load_result); } + + std::string title_version; + const FileSys::PatchManager pm(program_id, system.GetFileSystemController(), + system.GetContentProvider()); + const auto metadata = pm.GetControlMetadata(); + if (metadata.first != nullptr) { + title_version = metadata.first->GetVersionString(); + } if (auto room_member = room_network.GetRoomMember().lock()) { Network::GameInfo game_info; game_info.name = name; game_info.id = program_id; + game_info.version = title_version; room_member->SendGameInfo(game_info); } |