From a3bd34122be24b5e9868cbe00d937751df428571 Mon Sep 17 00:00:00 2001 From: NicknineTheEagle <nik18.1995@gmail.com> Date: Tue, 1 Oct 2024 00:45:50 +0300 Subject: [PATCH] [Emulator] Send XNotification after installing content package --- src/xenia/emulator.cc | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/xenia/emulator.cc b/src/xenia/emulator.cc index 0184524bc..f9d9636ac 100644 --- a/src/xenia/emulator.cc +++ b/src/xenia/emulator.cc @@ -643,8 +643,16 @@ X_STATUS Emulator::InstallContentPackage( vfs::VirtualFileSystem::ExtractContentHeader(device.get(), header_path); - return vfs::VirtualFileSystem::ExtractContentFiles(device.get(), - installation_path); + X_STATUS error_code = vfs::VirtualFileSystem::ExtractContentFiles( + device.get(), installation_path); + if (error_code != X_ERROR_SUCCESS) { + return error_code; + } + + kernel_state()->BroadcastNotification(kXNotificationIDLiveContentInstalled, + 0); + + return error_code; } X_STATUS Emulator::ExtractZarchivePackage(