mirror of
https://github.com/ptitSeb/box86.git
synced 2025-05-08 21:08:57 +08:00
Simplified some code.
This commit is contained in:
parent
819ec41320
commit
6d3b2fe902
@ -163,10 +163,8 @@ SDL2_RWops_t* RWNativeStart2(x86emu_t* emu, SDL2_RWops_t* ops)
|
||||
|
||||
void RWNativeEnd2(SDL2_RWops_t* ops)
|
||||
{
|
||||
if(!ops)
|
||||
return;
|
||||
|
||||
if(ops->type != BOX86RW)
|
||||
if(!ops || ops->type != BOX86RW)
|
||||
return; // do nothing
|
||||
|
||||
ops->hidden.my.custom_free(ops);
|
||||
|
@ -93,7 +93,6 @@ uint32_t RunFunctionWithEmu(x86emu_t *emu, int QuitOnLongJump, uintptr_t fnc, in
|
||||
emu->quit = old_quit;
|
||||
emu->quitonlongjmp = oldlong;
|
||||
|
||||
uint32_t ret = R_EAX;
|
||||
|
||||
return ret;
|
||||
return R_EAX;
|
||||
}
|
||||
|
@ -596,9 +596,9 @@ bool test_mmx_cpuid() {
|
||||
int has_mmx = !!(edx & (1 << 23));
|
||||
if (has_mmx) {
|
||||
return 0;
|
||||
} else {
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
int main() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user