mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-22 10:49:05 +02:00
Merge pull request #22616 from LunaMoo/native-cso-pack
Add built-in CSO packing functionality
This commit is contained in:
42 files changed
+6772
-7
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user