mirror of
https://github.com/joncampbell123/dosbox-x.git
synced 2025-05-08 19:32:39 +08:00
VS2015: Fix CPU reset code NOT to do restart_program hack even in dynamic core. In Windows, seems to work reliably so far. C++ exceptions seem to work with dynamic core so far in Windows 32-bit.
This commit is contained in:
parent
2e6ec36513
commit
e8a69b57f1
@ -1295,16 +1295,6 @@ void On_Software_CPU_Reset() {
|
||||
return;
|
||||
};
|
||||
|
||||
#if C_DYNAMIC_X86
|
||||
/* this technique is NOT reliable when running the dynamic core! */
|
||||
if (cpudecoder == &CPU_Core_Dyn_X86_Run) {
|
||||
LOG_MSG("Using traditional DOSBox re-exec, C++ exception method is not compatible with dynamic core\n");
|
||||
control->startup_params.insert(control->startup_params.begin(),control->cmdline->GetFileName());
|
||||
restart_program(control->startup_params);
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
throw int(3);
|
||||
/* does not return */
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user