mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
GE Debugger: Clear after replay finished.
This commit is contained in:
parent
82beb726fc
commit
e45b04a699
2 changed files with 13 additions and 3 deletions
|
@ -366,6 +366,10 @@ bool IsActive() {
|
||||||
return active;
|
return active;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Activate() {
|
||||||
|
nextFrame = true;
|
||||||
|
}
|
||||||
|
|
||||||
void NotifyCommand(u32 pc) {
|
void NotifyCommand(u32 pc) {
|
||||||
if (!active) {
|
if (!active) {
|
||||||
return;
|
return;
|
||||||
|
@ -634,6 +638,9 @@ static void ExecuteFree() {
|
||||||
for (int level = 0; level < 8; ++level) {
|
for (int level = 0; level < 8; ++level) {
|
||||||
FreePSPPointer(execTexturePtrs[level]);
|
FreePSPPointer(execTexturePtrs[level]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
commands.clear();
|
||||||
|
pushbuf.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool ExecuteCommands() {
|
static bool ExecuteCommands() {
|
||||||
|
@ -698,8 +705,6 @@ static bool ExecuteCommands() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ExecuteFree();
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -730,6 +735,7 @@ bool RunMountedReplay() {
|
||||||
read += pspFileSystem.ReadFile(fp, (u8 *)&commands[i].ptr, sizeof(commands[i].ptr));
|
read += pspFileSystem.ReadFile(fp, (u8 *)&commands[i].ptr, sizeof(commands[i].ptr));
|
||||||
if (read != sizeof(commands[i].type) + sizeof(commands[i].sz) + sizeof(commands[i].ptr)) {
|
if (read != sizeof(commands[i].type) + sizeof(commands[i].sz) + sizeof(commands[i].ptr)) {
|
||||||
ERROR_LOG(SYSTEM, "Truncated GE dump");
|
ERROR_LOG(SYSTEM, "Truncated GE dump");
|
||||||
|
ExecuteFree();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -737,12 +743,15 @@ bool RunMountedReplay() {
|
||||||
pushbuf.resize(bufsz);
|
pushbuf.resize(bufsz);
|
||||||
if (pspFileSystem.ReadFile(fp, pushbuf.data(), bufsz) != bufsz) {
|
if (pspFileSystem.ReadFile(fp, pushbuf.data(), bufsz) != bufsz) {
|
||||||
ERROR_LOG(SYSTEM, "Truncated GE dump");
|
ERROR_LOG(SYSTEM, "Truncated GE dump");
|
||||||
|
ExecuteFree();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
pspFileSystem.CloseFile(fp);
|
pspFileSystem.CloseFile(fp);
|
||||||
|
|
||||||
return ExecuteCommands();
|
bool success = ExecuteCommands();
|
||||||
|
ExecuteFree();
|
||||||
|
return success;
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
|
@ -22,6 +22,7 @@
|
||||||
namespace GPURecord {
|
namespace GPURecord {
|
||||||
|
|
||||||
bool IsActive();
|
bool IsActive();
|
||||||
|
void Activate();
|
||||||
|
|
||||||
void NotifyCommand(u32 pc);
|
void NotifyCommand(u32 pc);
|
||||||
void NotifyMemcpy(u32 dest, u32 src, u32 sz);
|
void NotifyMemcpy(u32 dest, u32 src, u32 sz);
|
||||||
|
|
Loading…
Add table
Reference in a new issue