mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 23:02:03 +00:00
Disable parental lock in NAM
git-svn-id: https://svn.eduke32.com/eduke32@245 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
59fbf83db5
commit
cf9f8a101c
2 changed files with 13 additions and 5 deletions
|
@ -594,7 +594,12 @@ int32 CONFIG_ReadSetup( void )
|
||||||
SCRIPT_GetString( scripthandle, "Comm Setup","RTSName",&ud.rtsname[0]);
|
SCRIPT_GetString( scripthandle, "Comm Setup","RTSName",&ud.rtsname[0]);
|
||||||
|
|
||||||
SCRIPT_GetNumber( scripthandle, "Screen Setup", "Shadows",&ud.shadows);
|
SCRIPT_GetNumber( scripthandle, "Screen Setup", "Shadows",&ud.shadows);
|
||||||
SCRIPT_GetString( scripthandle, "Screen Setup","Password",&ud.pwlockout[0]);
|
|
||||||
|
if (!NAM) {
|
||||||
|
SCRIPT_GetString( scripthandle, "Screen Setup","Password",&ud.pwlockout[0]);
|
||||||
|
SCRIPT_GetNumber( scripthandle, "Screen Setup", "Out",&ud.lockout);
|
||||||
|
}
|
||||||
|
|
||||||
SCRIPT_GetNumber( scripthandle, "Screen Setup", "Detail",&ud.detail);
|
SCRIPT_GetNumber( scripthandle, "Screen Setup", "Detail",&ud.detail);
|
||||||
SCRIPT_GetNumber( scripthandle, "Screen Setup", "Tilt",&ud.screen_tilting);
|
SCRIPT_GetNumber( scripthandle, "Screen Setup", "Tilt",&ud.screen_tilting);
|
||||||
SCRIPT_GetNumber( scripthandle, "Screen Setup", "Messages",&ud.fta_on);
|
SCRIPT_GetNumber( scripthandle, "Screen Setup", "Messages",&ud.fta_on);
|
||||||
|
@ -603,7 +608,6 @@ int32 CONFIG_ReadSetup( void )
|
||||||
SCRIPT_GetNumber( scripthandle, "Screen Setup", "ScreenMode",&ScreenMode);
|
SCRIPT_GetNumber( scripthandle, "Screen Setup", "ScreenMode",&ScreenMode);
|
||||||
SCRIPT_GetNumber( scripthandle, "Screen Setup", "ScreenGamma",&ud.brightness);
|
SCRIPT_GetNumber( scripthandle, "Screen Setup", "ScreenGamma",&ud.brightness);
|
||||||
SCRIPT_GetNumber( scripthandle, "Screen Setup", "ScreenSize",&ud.screen_size);
|
SCRIPT_GetNumber( scripthandle, "Screen Setup", "ScreenSize",&ud.screen_size);
|
||||||
SCRIPT_GetNumber( scripthandle, "Screen Setup", "Out",&ud.lockout);
|
|
||||||
|
|
||||||
#if defined(POLYMOST) && defined(USE_OPENGL)
|
#if defined(POLYMOST) && defined(USE_OPENGL)
|
||||||
SCRIPT_GetNumber( scripthandle, "Screen Setup", "ScreenBPP", &ScreenBPP);
|
SCRIPT_GetNumber( scripthandle, "Screen Setup", "ScreenBPP", &ScreenBPP);
|
||||||
|
@ -771,8 +775,12 @@ void CONFIG_WriteSetup( void )
|
||||||
SCRIPT_PutNumber( scripthandle, "Screen Setup", "MaxRefreshFreq",maxrefreshfreq,false,false);
|
SCRIPT_PutNumber( scripthandle, "Screen Setup", "MaxRefreshFreq",maxrefreshfreq,false,false);
|
||||||
#endif
|
#endif
|
||||||
SCRIPT_PutNumber( scripthandle, "Screen Setup", "Messages",ud.fta_on,false,false);
|
SCRIPT_PutNumber( scripthandle, "Screen Setup", "Messages",ud.fta_on,false,false);
|
||||||
SCRIPT_PutNumber( scripthandle, "Screen Setup", "Out",ud.lockout,false,false);
|
|
||||||
SCRIPT_PutString( scripthandle, "Screen Setup", "Password",ud.pwlockout);
|
if (!NAM) {
|
||||||
|
SCRIPT_PutNumber( scripthandle, "Screen Setup", "Out",ud.lockout,false,false);
|
||||||
|
SCRIPT_PutString( scripthandle, "Screen Setup", "Password",ud.pwlockout);
|
||||||
|
}
|
||||||
|
|
||||||
SCRIPT_PutNumber( scripthandle, "Screen Setup", "ScreenBPP",ScreenBPP,false,false); // JBF 20040523
|
SCRIPT_PutNumber( scripthandle, "Screen Setup", "ScreenBPP",ScreenBPP,false,false); // JBF 20040523
|
||||||
SCRIPT_PutNumber( scripthandle, "Screen Setup", "ScreenGamma",ud.brightness,false,false);
|
SCRIPT_PutNumber( scripthandle, "Screen Setup", "ScreenGamma",ud.brightness,false,false);
|
||||||
SCRIPT_PutNumber( scripthandle, "Screen Setup", "ScreenHeight",ScreenHeight,false,false); // JBF 20031206
|
SCRIPT_PutNumber( scripthandle, "Screen Setup", "ScreenHeight",ScreenHeight,false,false); // JBF 20031206
|
||||||
|
|
|
@ -2373,7 +2373,7 @@ cheat_for_port_credits:
|
||||||
}
|
}
|
||||||
enabled = 1;
|
enabled = 1;
|
||||||
switch (io) {
|
switch (io) {
|
||||||
case 0: if (x==io) cmenu(10000); break;
|
case 0: if(!NAM) { if (x==io) cmenu(10000); } else enabled = 0; break;
|
||||||
case 1: if (x==io) { ud.drawweapon = (ud.drawweapon == 2) ? 0 : ud.drawweapon+1; }
|
case 1: if (x==io) { ud.drawweapon = (ud.drawweapon == 2) ? 0 : ud.drawweapon+1; }
|
||||||
modval(0,2,(int *)&ud.drawweapon,1,probey==io);
|
modval(0,2,(int *)&ud.drawweapon,1,probey==io);
|
||||||
{ char *s[] = { "Off", "On", "Icon" };
|
{ char *s[] = { "Off", "On", "Icon" };
|
||||||
|
|
Loading…
Reference in a new issue