- option to run game using ISO/BIN

This commit is contained in:
Ilya Shurumov 2021-04-09 15:45:09 +06:00
parent 09034713e6
commit 3693d5beff

View File

@ -524,12 +524,20 @@ int main(int argc, char** argv)
if (config)
{
extern int gDisableChicagoBridges;
extern int gContentOverride;
int newScrZ = gCameraDefaultScrZ;
const char* dataFolderStr = ini_get(config, "fs", "dataFolder");
const char* userReplaysStr = ini_get(config, "game", "userChases");
const char* cdImageFileName = ini_get(config, "cdfs", "image");
InitUserReplays(userReplaysStr);
// configure Psy-X CD image reader
if(cdImageFileName)
{
PsyX_CDFS_Init(cdImageFileName);
}
// configure Psy-X pads
ini_sget(config, "pad", "pad1device", "%d", &g_controllerToSlotMapping[0]);
ini_sget(config, "pad", "pad2device", "%d", &g_controllerToSlotMapping[1]);
@ -551,6 +559,8 @@ int main(int argc, char** argv)
ini_sget(config, "game", "widescreenOverlays", "%d", &gWidescreenOverlayAlign);
ini_sget(config, "game", "fastLoadingScreens", "%d", &gFastLoadingScreens);
ini_sget(config, "game", "languageId", "%d", &gUserLanguage);
ini_sget(config, "game", "overrideContent", "%d", &gContentOverride);
gCameraDefaultScrZ = MAX(MIN(newScrZ, 384), 128);