Merge pull request #22616 from LunaMoo/native-cso-pack

Add built-in CSO packing functionality
This commit is contained in:
Henrik Rydgård authored and GitHub committed 2026-10-19 18:53:00 +02:00
commit 6015ff06a7
42 files changed
+6772 -7

No files matched your search

+6
View File
@@ -136,6 +136,7 @@
#include "UI/Background.h"
#include "UI/BackgroundAudio.h"
#include "UI/ControlMappingScreen.h"
#include "UI/GamePacker.h"
#include "UI/DevScreens.h"
#include "UI/DiscordIntegration.h"
#include "UI/EmuScreen.h"
@@ -1151,6 +1152,8 @@ void NativeFrame(GraphicsContext *graphicsContext) {
g_GameManager.Update();
GamePacker::UpdateOnUIThread();
if (GetUIState() != UISTATE_INGAME) {
// Note: We do this from NativeFrame so that the graphics context is
// guaranteed valid, to be safe - g_gameInfoCache messes around with textures.
@@ -1855,6 +1858,9 @@ void NativeShutdown() {
Achievements::Shutdown(false); // CancelAll below drops the pending requests.
// A half-written image would be left behind otherwise.
GamePacker::Shutdown();
if (g_Config.bAchievementsEnable) {
FILE *iconCacheFile = File::OpenCFile(GetSysDirectory(DIRECTORY_CACHE) / "icon.cache", "wb");
if (iconCacheFile) {