Fix dynarec x64 crash with mingw64.
Get rid of CDI warning pop up dialog
This commit is contained in:
parent
c850093b0a
commit
21f47c03ec
|
@ -425,6 +425,7 @@ void recSh4_Init()
|
|||
}
|
||||
|
||||
#if defined(_WIN64)
|
||||
#ifdef _MSVC_VER
|
||||
for (int i = 10; i < 1300; i++) {
|
||||
|
||||
|
||||
|
@ -436,6 +437,10 @@ void recSh4_Init()
|
|||
if (CodeCache)
|
||||
break;
|
||||
}
|
||||
#else
|
||||
CodeCache = (u8*)VirtualAlloc(NULL, CODE_SIZE, MEM_RESERVE | MEM_COMMIT, PAGE_EXECUTE_READWRITE);
|
||||
#endif
|
||||
verify(CodeCache != NULL);
|
||||
#else
|
||||
CodeCache = (u8*)(((unat)SH4_TCB+4095)& ~4095);
|
||||
#endif
|
||||
|
|
|
@ -138,11 +138,8 @@ Disc* OpenDisc(const wchar* fn)
|
|||
|
||||
if (rv && cdi_parse == drivers[i]) {
|
||||
const wchar warn_str[] = "Warning: CDI Image Loaded!\n Many CDI images are known to be defective, GDI or CHD format is preferred. Please only file bug reports when using images known to be good (GDI or CHD).";
|
||||
#ifdef _ANDROID
|
||||
printf(warn_str);
|
||||
#else
|
||||
msgboxf(warn_str, MBX_ICONASTERISK);// if (OS_DlgYes!=os_Dialog(OS_DialogYesNo, cdiWarn_S)) rv=0;
|
||||
#endif
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue