GPU: Support replacing VRAM writes with new textures

This commit is contained in:
Connor McLaughlin
2020-12-25 18:02:38 +10:00
parent a66f14b5c3
commit 8db961042a
15 changed files with 680 additions and 26 deletions

View File

@ -27,6 +27,7 @@
#include "save_state_version.h"
#include "sio.h"
#include "spu.h"
#include "texture_replacements.h"
#include "timers.h"
#include <cctype>
#include <cstdio>
@ -770,6 +771,8 @@ void Shutdown()
if (s_state == State::Shutdown)
return;
g_texture_replacements.Shutdown();
g_sio.Shutdown();
g_mdec.Shutdown();
g_spu.Shutdown();
@ -1691,6 +1694,8 @@ void UpdateRunningGame(const char* path, CDImage* image)
s_running_game_code.c_str(), s_running_game_title.c_str());
}
g_texture_replacements.SetGameID(s_running_game_code);
g_host_interface->OnRunningGameChanged();
}