mirror of
https://github.com/OpenDriver2/REDRIVER2.git
synced 2024-11-24 11:22:39 +01:00
- fix PSX compile errors
This commit is contained in:
parent
5287396b9f
commit
89318af5e8
@ -561,11 +561,11 @@ int loadsectorsPC(char* addr, int sector, int nsectors)
|
||||
return 1;
|
||||
}
|
||||
|
||||
#ifndef __EMSCRIPTEN__
|
||||
#if USE_PC_FILESYSTEM && !defined(__EMSCRIPTEN__)
|
||||
char errPrint[512];
|
||||
sprintf(errPrint, "loadsectorsPC: failed to open '%s'\n", namebuffer);
|
||||
SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR, "ERROR", errPrint, NULL);
|
||||
#endif // !__EMSCRIPTEN__
|
||||
#endif // USE_PC_FILESYSTEM && !PSX
|
||||
return 0;
|
||||
}
|
||||
|
||||
@ -969,7 +969,7 @@ void SetCityType(CITYTYPE type)
|
||||
|
||||
while (CdSearchFile(&cdfile, filename) == NULL)
|
||||
{
|
||||
#ifdef USE_PC_FILESYSTEM
|
||||
#if USE_PC_FILESYSTEM
|
||||
#ifndef __EMSCRIPTEN__
|
||||
char errPrint[512];
|
||||
sprintf(errPrint, "SetCityType: failed to open '%s'\n", filename);
|
||||
@ -1005,12 +1005,10 @@ void SetCityType(CITYTYPE type)
|
||||
data += 2;
|
||||
}
|
||||
#elif USE_PC_FILESYSTEM && !defined(__EMSCRIPTEN__)
|
||||
|
||||
char errPrint[1024];
|
||||
sprintf(errPrint, "SetCityType: cannot open level '%s'\n", filename);
|
||||
|
||||
SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR, "ERROR", errPrint, NULL);
|
||||
|
||||
#endif // PSX
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user