mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-01-19 04:13:24 +00:00
Minor cleanup, add a speculative comment.
This commit is contained in:
parent
c085990f21
commit
4e732af786
@ -444,10 +444,10 @@ public:
|
||||
u32 Destroy(SceUID handle) {
|
||||
u32 error;
|
||||
if (Get<T>(handle, error)) {
|
||||
occupied[handle-handleOffset] = false;
|
||||
delete pool[handle-handleOffset];
|
||||
// Why weren't we zeroing before?
|
||||
pool[handle-handleOffset] = nullptr;
|
||||
int index = handle - handleOffset;
|
||||
occupied[index] = false;
|
||||
delete pool[index];
|
||||
pool[index] = nullptr;
|
||||
}
|
||||
return error;
|
||||
};
|
||||
|
@ -54,6 +54,8 @@ namespace MIPSComp {
|
||||
std::recursive_mutex jitLock;
|
||||
|
||||
void JitAt() {
|
||||
// TODO: We could probably check for a bad pc here, and fire an exception. Could spare us from some crashes.
|
||||
// Although, we just tried to load from this address to check for a JIT block, and if we're here, that succeeded..
|
||||
jit->Compile(currentMIPS->pc);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user