diff options
Diffstat (limited to 'src/core/core.cpp')
| -rw-r--r-- | src/core/core.cpp | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/core/core.cpp b/src/core/core.cpp index ea32a4a8d..121092868 100644 --- a/src/core/core.cpp +++ b/src/core/core.cpp | |||
| @@ -141,8 +141,6 @@ struct System::Impl { | |||
| 141 | core_timing.SyncPause(false); | 141 | core_timing.SyncPause(false); |
| 142 | is_paused = false; | 142 | is_paused = false; |
| 143 | 143 | ||
| 144 | audio_core->PauseSinks(false); | ||
| 145 | |||
| 146 | return status; | 144 | return status; |
| 147 | } | 145 | } |
| 148 | 146 | ||
| @@ -150,8 +148,6 @@ struct System::Impl { | |||
| 150 | std::unique_lock<std::mutex> lk(suspend_guard); | 148 | std::unique_lock<std::mutex> lk(suspend_guard); |
| 151 | status = SystemResultStatus::Success; | 149 | status = SystemResultStatus::Success; |
| 152 | 150 | ||
| 153 | audio_core->PauseSinks(true); | ||
| 154 | |||
| 155 | core_timing.SyncPause(true); | 151 | core_timing.SyncPause(true); |
| 156 | kernel.Suspend(true); | 152 | kernel.Suspend(true); |
| 157 | is_paused = true; | 153 | is_paused = true; |
| @@ -319,10 +315,19 @@ struct System::Impl { | |||
| 319 | if (app_loader->ReadTitle(name) != Loader::ResultStatus::Success) { | 315 | if (app_loader->ReadTitle(name) != Loader::ResultStatus::Success) { |
| 320 | LOG_ERROR(Core, "Failed to read title for ROM (Error {})", load_result); | 316 | LOG_ERROR(Core, "Failed to read title for ROM (Error {})", load_result); |
| 321 | } | 317 | } |
| 318 | |||
| 319 | std::string title_version; | ||
| 320 | const FileSys::PatchManager pm(program_id, system.GetFileSystemController(), | ||
| 321 | system.GetContentProvider()); | ||
| 322 | const auto metadata = pm.GetControlMetadata(); | ||
| 323 | if (metadata.first != nullptr) { | ||
| 324 | title_version = metadata.first->GetVersionString(); | ||
| 325 | } | ||
| 322 | if (auto room_member = room_network.GetRoomMember().lock()) { | 326 | if (auto room_member = room_network.GetRoomMember().lock()) { |
| 323 | Network::GameInfo game_info; | 327 | Network::GameInfo game_info; |
| 324 | game_info.name = name; | 328 | game_info.name = name; |
| 325 | game_info.id = program_id; | 329 | game_info.id = program_id; |
| 330 | game_info.version = title_version; | ||
| 326 | room_member->SendGameInfo(game_info); | 331 | room_member->SendGameInfo(game_info); |
| 327 | } | 332 | } |
| 328 | 333 | ||