mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-23 13:30:02 +00:00
Add a setting to skip 0xDEADBEEF reg filling.
For debugging purposes. Can't think of a better way.
This commit is contained in:
parent
9ebaf7b68b
commit
ee57498b16
@ -285,6 +285,7 @@ void Config::Load(const char *iniFileName, const char *controllerIniFilename) {
|
||||
debugConfig->Get("DisplayStatusBar", &bDisplayStatusBar, true);
|
||||
debugConfig->Get("ShowBottomTabTitles",&bShowBottomTabTitles,true);
|
||||
debugConfig->Get("ShowDeveloperMenu", &bShowDeveloperMenu, false);
|
||||
debugConfig->Get("SkipDeadbeefFilling", &bSkipDeadbeefFilling, false);
|
||||
|
||||
IniFile::Section *speedhacks = iniFile.GetOrCreateSection("SpeedHacks");
|
||||
speedhacks->Get("PrescaleUV", &bPrescaleUV, false);
|
||||
@ -481,6 +482,7 @@ void Config::Save() {
|
||||
debugConfig->Set("DisplayStatusBar", bDisplayStatusBar);
|
||||
debugConfig->Set("ShowBottomTabTitles",bShowBottomTabTitles);
|
||||
debugConfig->Set("ShowDeveloperMenu", bShowDeveloperMenu);
|
||||
debugConfig->Set("SkipDeadbeefFilling", bSkipDeadbeefFilling);
|
||||
|
||||
IniFile::Section *speedhacks = iniFile.GetOrCreateSection("SpeedHacks");
|
||||
speedhacks->Set("PrescaleUV", bPrescaleUV);
|
||||
|
@ -215,6 +215,8 @@ public:
|
||||
bool bDisplayStatusBar;
|
||||
bool bShowBottomTabTitles;
|
||||
bool bShowDeveloperMenu;
|
||||
// Double edged sword: much easier debugging, but not accurate.
|
||||
bool bSkipDeadbeefFilling;
|
||||
|
||||
std::string currentDirectory;
|
||||
std::string externalDirectory;
|
||||
|
@ -351,7 +351,9 @@ void hleEatMicro(int usec)
|
||||
const static u32 deadbeefRegs[12] = {0xDEADBEEF, 0xDEADBEEF, 0xDEADBEEF, 0xDEADBEEF, 0xDEADBEEF, 0xDEADBEEF, 0xDEADBEEF, 0xDEADBEEF, 0xDEADBEEF, 0xDEADBEEF, 0xDEADBEEF, 0xDEADBEEF};
|
||||
inline static void SetDeadbeefRegs()
|
||||
{
|
||||
// TODO: Debug setting?
|
||||
if (g_Config.bSkipDeadbeefFilling)
|
||||
return;
|
||||
|
||||
currentMIPS->r[MIPS_REG_COMPILER_SCRATCH] = 0xDEADBEEF;
|
||||
// Set all the arguments and temp regs.
|
||||
memcpy(¤tMIPS->r[MIPS_REG_A0], deadbeefRegs, sizeof(deadbeefRegs));
|
||||
|
Loading…
Reference in New Issue
Block a user