mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-13 09:39:33 +01:00
Move Action out of Common, don't use savedV0.
Compiler error was annoying me anyway.
This commit is contained in:
1 parent
0d8bdfe989
commit
21cfd087e1
12 files changed
+19
-41
No files matched your search
@@ -26,7 +26,6 @@
|
||||
#include "../MIPS/MIPS.h"
|
||||
#include "../../Core/CoreTiming.h"
|
||||
#include "../../Core/MemMap.h"
|
||||
#include "../../Common/Action.h"
|
||||
|
||||
#include "sceAudio.h"
|
||||
#include "sceKernel.h"
|
||||
@@ -545,6 +544,11 @@ void MipsCall::DoState(PointerWrap &p)
|
||||
}
|
||||
}
|
||||
|
||||
void MipsCall::setReturnValue(u32 value)
|
||||
{
|
||||
savedV0 = value;
|
||||
}
|
||||
|
||||
// TODO: Should move to this wrapper so we can keep the current thread as a SceUID instead
|
||||
// of a dangerous raw pointer.
|
||||
Thread *__GetCurrentThread() {
|
||||
@@ -2013,7 +2017,7 @@ void Thread::setReturnValue(u32 retval)
|
||||
int callId = this->currentCallbackId;
|
||||
MipsCall *call = mipsCalls.get(callId);
|
||||
if (call) {
|
||||
call->savedV0 = retval;
|
||||
call->setReturnValue(retval);
|
||||
} else {
|
||||
ERROR_LOG(HLE, "Failed to inject return value %08x in thread", retval);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user