mirror of
https://github.com/OpenDriver2/REDRIVER2.git
synced 2024-11-22 10:22:48 +01:00
- option to run game using ISO/BIN
This commit is contained in:
parent
09034713e6
commit
3693d5beff
@ -524,12 +524,20 @@ int main(int argc, char** argv)
|
|||||||
if (config)
|
if (config)
|
||||||
{
|
{
|
||||||
extern int gDisableChicagoBridges;
|
extern int gDisableChicagoBridges;
|
||||||
|
extern int gContentOverride;
|
||||||
int newScrZ = gCameraDefaultScrZ;
|
int newScrZ = gCameraDefaultScrZ;
|
||||||
const char* dataFolderStr = ini_get(config, "fs", "dataFolder");
|
const char* dataFolderStr = ini_get(config, "fs", "dataFolder");
|
||||||
const char* userReplaysStr = ini_get(config, "game", "userChases");
|
const char* userReplaysStr = ini_get(config, "game", "userChases");
|
||||||
|
const char* cdImageFileName = ini_get(config, "cdfs", "image");
|
||||||
|
|
||||||
InitUserReplays(userReplaysStr);
|
InitUserReplays(userReplaysStr);
|
||||||
|
|
||||||
|
// configure Psy-X CD image reader
|
||||||
|
if(cdImageFileName)
|
||||||
|
{
|
||||||
|
PsyX_CDFS_Init(cdImageFileName);
|
||||||
|
}
|
||||||
|
|
||||||
// configure Psy-X pads
|
// configure Psy-X pads
|
||||||
ini_sget(config, "pad", "pad1device", "%d", &g_controllerToSlotMapping[0]);
|
ini_sget(config, "pad", "pad1device", "%d", &g_controllerToSlotMapping[0]);
|
||||||
ini_sget(config, "pad", "pad2device", "%d", &g_controllerToSlotMapping[1]);
|
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", "widescreenOverlays", "%d", &gWidescreenOverlayAlign);
|
||||||
ini_sget(config, "game", "fastLoadingScreens", "%d", &gFastLoadingScreens);
|
ini_sget(config, "game", "fastLoadingScreens", "%d", &gFastLoadingScreens);
|
||||||
ini_sget(config, "game", "languageId", "%d", &gUserLanguage);
|
ini_sget(config, "game", "languageId", "%d", &gUserLanguage);
|
||||||
|
ini_sget(config, "game", "overrideContent", "%d", &gContentOverride);
|
||||||
|
|
||||||
|
|
||||||
gCameraDefaultScrZ = MAX(MIN(newScrZ, 384), 128);
|
gCameraDefaultScrZ = MAX(MIN(newScrZ, 384), 128);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user