mirror of
https://github.com/GTAmodding/re3.git
synced 2024-11-16 08:38:59 +00:00
add freecam toggle in control settings
comes with a free config save!
This commit is contained in:
parent
2db26d304f
commit
b4060a4789
4 changed files with 21 additions and 2 deletions
|
@ -29,7 +29,7 @@ bool PrintDebugCode = false;
|
||||||
int16 DebugCamMode;
|
int16 DebugCamMode;
|
||||||
|
|
||||||
#ifdef FREE_CAM
|
#ifdef FREE_CAM
|
||||||
bool CCamera::bFreeCam = true;
|
bool CCamera::bFreeCam;
|
||||||
int nPreviousMode = -1;
|
int nPreviousMode = -1;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -3115,6 +3115,9 @@ CMenuManager::LoadSettings()
|
||||||
CFileMgr::Read(fileHandle, m_PrefsSkinFile, 256);
|
CFileMgr::Read(fileHandle, m_PrefsSkinFile, 256);
|
||||||
CFileMgr::Read(fileHandle, (char*)&m_ControlMethod, 1);
|
CFileMgr::Read(fileHandle, (char*)&m_ControlMethod, 1);
|
||||||
CFileMgr::Read(fileHandle, (char*)&m_PrefsLanguage, 1);
|
CFileMgr::Read(fileHandle, (char*)&m_PrefsLanguage, 1);
|
||||||
|
#ifdef FREE_CAM
|
||||||
|
CFileMgr::Read(fileHandle, (char*)&TheCamera.bFreeCam, 1);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -3205,6 +3208,9 @@ CMenuManager::SaveSettings()
|
||||||
CFileMgr::Write(fileHandle, m_PrefsSkinFile, 256);
|
CFileMgr::Write(fileHandle, m_PrefsSkinFile, 256);
|
||||||
CFileMgr::Write(fileHandle, (char*)&m_ControlMethod, 1);
|
CFileMgr::Write(fileHandle, (char*)&m_ControlMethod, 1);
|
||||||
CFileMgr::Write(fileHandle, (char*)&m_PrefsLanguage, 1);
|
CFileMgr::Write(fileHandle, (char*)&m_PrefsLanguage, 1);
|
||||||
|
#ifdef FREE_CAM
|
||||||
|
CFileMgr::Write(fileHandle, (char*)&TheCamera.bFreeCam, 1);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
CFileMgr::CloseFile(fileHandle);
|
CFileMgr::CloseFile(fileHandle);
|
||||||
|
@ -4952,6 +4958,13 @@ CMenuManager::ProcessOnOffMenuOptions()
|
||||||
DMAudio.PlayFrontEndSound(SOUND_FRONTEND_MENU_SUCCESS, 0);
|
DMAudio.PlayFrontEndSound(SOUND_FRONTEND_MENU_SUCCESS, 0);
|
||||||
SaveSettings();
|
SaveSettings();
|
||||||
break;
|
break;
|
||||||
|
#ifdef FREE_CAM
|
||||||
|
case MENUACTION_FREECAM:
|
||||||
|
TheCamera.bFreeCam = !TheCamera.bFreeCam;
|
||||||
|
DMAudio.PlayFrontEndSound(SOUND_FRONTEND_MENU_SUCCESS, 0);
|
||||||
|
SaveSettings();
|
||||||
|
break;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -380,7 +380,10 @@ enum eMenuAction
|
||||||
MENUACTION_LANG_JAP,
|
MENUACTION_LANG_JAP,
|
||||||
#endif
|
#endif
|
||||||
#ifdef IMPROVED_VIDEOMODE
|
#ifdef IMPROVED_VIDEOMODE
|
||||||
MENUACTION_SCREENMODE
|
MENUACTION_SCREENMODE,
|
||||||
|
#endif
|
||||||
|
#ifdef FREE_CAM
|
||||||
|
MENUACTION_FREECAM
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -284,6 +284,9 @@ const CMenuScreen aScreens[] = {
|
||||||
// MENUPAGE_CONTROLLER_PC = 35
|
// MENUPAGE_CONTROLLER_PC = 35
|
||||||
{ "FET_CTL", 1, MENUPAGE_OPTIONS, MENUPAGE_OPTIONS, 0, 0,
|
{ "FET_CTL", 1, MENUPAGE_OPTIONS, MENUPAGE_OPTIONS, 0, 0,
|
||||||
MENUACTION_CTRLMETHOD, "FET_CME", SAVESLOT_NONE, MENUPAGE_CONTROLLER_PC,
|
MENUACTION_CTRLMETHOD, "FET_CME", SAVESLOT_NONE, MENUPAGE_CONTROLLER_PC,
|
||||||
|
#ifdef FREE_CAM
|
||||||
|
MENUACTION_FREECAM, "FREECAM", SAVESLOT_NONE, MENUPAGE_CONTROLLER_PC,
|
||||||
|
#endif
|
||||||
MENUACTION_CHANGEMENU, "FET_RDK", SAVESLOT_NONE, MENUPAGE_KEYBOARD_CONTROLS,
|
MENUACTION_CHANGEMENU, "FET_RDK", SAVESLOT_NONE, MENUPAGE_KEYBOARD_CONTROLS,
|
||||||
MENUACTION_CHANGEMENU, "FET_AMS", SAVESLOT_NONE, MENUPAGE_MOUSE_CONTROLS,
|
MENUACTION_CHANGEMENU, "FET_AMS", SAVESLOT_NONE, MENUPAGE_MOUSE_CONTROLS,
|
||||||
MENUACTION_RESTOREDEF, "FET_DEF", SAVESLOT_NONE, MENUPAGE_CONTROLLER_PC,
|
MENUACTION_RESTOREDEF, "FET_DEF", SAVESLOT_NONE, MENUPAGE_CONTROLLER_PC,
|
||||||
|
|
Loading…
Reference in a new issue