Fix the API for MIPSAssembleOpcode to remove a global

This commit is contained in:
Henrik Rydgård committed 2025-11-03 16:08:07 +01:00
1 parent 7d42c7b650
commit c20be71c10
8 files changed
+33 -55

No files matched your search

+4 -2
View File
@@ -478,8 +478,10 @@ void WebSocketDisasmState::Assemble(DebuggerRequest &req) {
if (!req.ParamString("code", &code))
return;
if (!MIPSAsm::MipsAssembleOpcode(code.c_str(), currentDebugMIPS, address))
return req.Fail(StringFromFormat("Could not assemble: %s", MIPSAsm::GetAssembleError().c_str()));
std::string error;
if (!MipsAssembleOpcode(code, currentDebugMIPS, address, &error)) {
return req.Fail(StringFromFormat("Could not assemble: %s", error.c_str()));
}
JsonWriter &json = req.Respond();
Reporting::NotifyDebugger();