mirror of
https://github.com/perfect-dark-pc-port/perfect_dark.git
synced 2026-10-23 15:52:41 +02:00
port-no-doors: reverted the menu changes
This commit is contained in:
1 parent
54b62c044f
commit
0973f70301
6 files changed
+213
-23
No files matched your search
@@ -11,8 +11,6 @@
|
||||
* Players cannot score unless their briefcase is at the home base.
|
||||
*/
|
||||
|
||||
extern struct menudialogdef g_ExtGameOptionsMenuDialog;
|
||||
|
||||
struct menuitem g_CtcOptionsMenuItems[] = {
|
||||
{
|
||||
MENUITEMTYPE_CHECKBOX,
|
||||
@@ -62,6 +60,40 @@ struct menuitem g_CtcOptionsMenuItems[] = {
|
||||
MPOPTION_NOAUTOAIM,
|
||||
menuhandlerMpCheckboxOption,
|
||||
},
|
||||
#ifndef PLATFORM_N64
|
||||
{
|
||||
MENUITEMTYPE_CHECKBOX,
|
||||
0,
|
||||
MENUITEMFLAG_LOCKABLEMINOR | MENUITEMFLAG_LITERAL_TEXT,
|
||||
(uintptr_t)"Start Armed",
|
||||
MPOPTION_SPAWNWITHWEAPON,
|
||||
menuhandlerMpCheckboxOption,
|
||||
},
|
||||
{
|
||||
MENUITEMTYPE_CHECKBOX,
|
||||
0,
|
||||
MENUITEMFLAG_LOCKABLEMINOR | MENUITEMFLAG_LITERAL_TEXT,
|
||||
(uintptr_t)"No Drug Blur",
|
||||
MPOPTION_NODRUGBLUR,
|
||||
menuhandlerMpCheckboxOption,
|
||||
},
|
||||
{
|
||||
MENUITEMTYPE_CHECKBOX,
|
||||
0,
|
||||
MENUITEMFLAG_LOCKABLEMINOR,
|
||||
L_OPTIONS_257, // "Friendly Fire"
|
||||
MPOPTION_FRIENDLYFIRE,
|
||||
menuhandlerMpDisplayTeam,
|
||||
},
|
||||
{
|
||||
MENUITEMTYPE_CHECKBOX,
|
||||
0,
|
||||
MENUITEMFLAG_LOCKABLEMINOR | MENUITEMFLAG_LITERAL_TEXT,
|
||||
(uintptr_t)"No Player on Radar",
|
||||
MPOPTION_NOPLAYERONRADAR,
|
||||
menuhandlerMpCheckboxOption,
|
||||
},
|
||||
#endif
|
||||
{
|
||||
MENUITEMTYPE_CHECKBOX,
|
||||
0,
|
||||
@@ -111,8 +143,7 @@ struct menudialogdef g_CtcOptionsMenuDialog = {
|
||||
g_CtcOptionsMenuItems,
|
||||
mpOptionsMenuDialog,
|
||||
MENUDIALOGFLAG_MPLOCKABLE,
|
||||
&g_ExtGameOptionsMenuDialog,
|
||||
// NULL,
|
||||
NULL,
|
||||
};
|
||||
|
||||
struct weaponobj g_CtcTokenObj0;
|
||||
|
||||
@@ -6,8 +6,6 @@
|
||||
* There are no callback functions or special logic.
|
||||
*/
|
||||
|
||||
extern struct menudialogdef g_ExtGameOptionsMenuDialog;
|
||||
|
||||
struct menuitem g_MpCombatOptionsMenuItems[] = {
|
||||
{
|
||||
MENUITEMTYPE_CHECKBOX,
|
||||
@@ -57,6 +55,40 @@ struct menuitem g_MpCombatOptionsMenuItems[] = {
|
||||
MPOPTION_NOAUTOAIM,
|
||||
menuhandlerMpCheckboxOption,
|
||||
},
|
||||
#ifndef PLATFORM_N64
|
||||
{
|
||||
MENUITEMTYPE_CHECKBOX,
|
||||
0,
|
||||
MENUITEMFLAG_LOCKABLEMINOR | MENUITEMFLAG_LITERAL_TEXT,
|
||||
(uintptr_t)"Start Armed",
|
||||
MPOPTION_SPAWNWITHWEAPON,
|
||||
menuhandlerMpCheckboxOption,
|
||||
},
|
||||
{
|
||||
MENUITEMTYPE_CHECKBOX,
|
||||
0,
|
||||
MENUITEMFLAG_LOCKABLEMINOR | MENUITEMFLAG_LITERAL_TEXT,
|
||||
(uintptr_t)"No Drug Blur",
|
||||
MPOPTION_NODRUGBLUR,
|
||||
menuhandlerMpCheckboxOption,
|
||||
},
|
||||
{
|
||||
MENUITEMTYPE_CHECKBOX,
|
||||
0,
|
||||
MENUITEMFLAG_LOCKABLEMINOR,
|
||||
L_OPTIONS_257, // "Friendly Fire"
|
||||
MPOPTION_FRIENDLYFIRE,
|
||||
menuhandlerMpDisplayTeam,
|
||||
},
|
||||
{
|
||||
MENUITEMTYPE_CHECKBOX,
|
||||
0,
|
||||
MENUITEMFLAG_LOCKABLEMINOR | MENUITEMFLAG_LITERAL_TEXT,
|
||||
(uintptr_t)"No Player on Radar",
|
||||
MPOPTION_NOPLAYERONRADAR,
|
||||
menuhandlerMpCheckboxOption,
|
||||
},
|
||||
#endif
|
||||
{
|
||||
MENUITEMTYPE_SEPARATOR,
|
||||
0,
|
||||
@@ -106,5 +138,5 @@ struct menudialogdef g_MpCombatOptionsMenuDialog = {
|
||||
g_MpCombatOptionsMenuItems,
|
||||
mpOptionsMenuDialog,
|
||||
MENUDIALOGFLAG_MPLOCKABLE,
|
||||
&g_ExtGameOptionsMenuDialog,
|
||||
NULL,
|
||||
};
|
||||
@@ -7,8 +7,6 @@
|
||||
* cannot use weapons while uplinking.
|
||||
*/
|
||||
|
||||
extern struct menudialogdef g_ExtGameOptionsMenuDialog;
|
||||
|
||||
#define HTM_NUM_TERMINALS 1
|
||||
|
||||
struct menuitem g_HtmOptionsMenuItems[] = {
|
||||
@@ -60,6 +58,40 @@ struct menuitem g_HtmOptionsMenuItems[] = {
|
||||
MPOPTION_NOAUTOAIM,
|
||||
menuhandlerMpCheckboxOption,
|
||||
},
|
||||
#ifndef PLATFORM_N64
|
||||
{
|
||||
MENUITEMTYPE_CHECKBOX,
|
||||
0,
|
||||
MENUITEMFLAG_LOCKABLEMINOR | MENUITEMFLAG_LITERAL_TEXT,
|
||||
(uintptr_t)"Start Armed",
|
||||
MPOPTION_SPAWNWITHWEAPON,
|
||||
menuhandlerMpCheckboxOption,
|
||||
},
|
||||
{
|
||||
MENUITEMTYPE_CHECKBOX,
|
||||
0,
|
||||
MENUITEMFLAG_LOCKABLEMINOR | MENUITEMFLAG_LITERAL_TEXT,
|
||||
(uintptr_t)"No Drug Blur",
|
||||
MPOPTION_NODRUGBLUR,
|
||||
menuhandlerMpCheckboxOption,
|
||||
},
|
||||
{
|
||||
MENUITEMTYPE_CHECKBOX,
|
||||
0,
|
||||
MENUITEMFLAG_LOCKABLEMINOR,
|
||||
L_OPTIONS_257, // "Friendly Fire"
|
||||
MPOPTION_FRIENDLYFIRE,
|
||||
menuhandlerMpDisplayTeam,
|
||||
},
|
||||
{
|
||||
MENUITEMTYPE_CHECKBOX,
|
||||
0,
|
||||
MENUITEMFLAG_LOCKABLEMINOR | MENUITEMFLAG_LITERAL_TEXT,
|
||||
(uintptr_t)"No Player on Radar",
|
||||
MPOPTION_NOPLAYERONRADAR,
|
||||
menuhandlerMpCheckboxOption,
|
||||
},
|
||||
#endif
|
||||
{
|
||||
MENUITEMTYPE_CHECKBOX,
|
||||
0,
|
||||
@@ -117,7 +149,7 @@ struct menudialogdef g_HtmOptionsMenuDialog = {
|
||||
g_HtmOptionsMenuItems,
|
||||
mpOptionsMenuDialog,
|
||||
MENUDIALOGFLAG_MPLOCKABLE,
|
||||
&g_ExtGameOptionsMenuDialog,
|
||||
NULL,
|
||||
};
|
||||
|
||||
struct weaponobj g_HtmUplinkObj;
|
||||
|
||||
@@ -9,8 +9,6 @@
|
||||
* slightly slower but still have full access to their weaponry.
|
||||
*/
|
||||
|
||||
extern struct menudialogdef g_ExtGameOptionsMenuDialog;
|
||||
|
||||
struct menuitem g_HtbOptionsMenuItems[] = {
|
||||
{
|
||||
MENUITEMTYPE_CHECKBOX,
|
||||
@@ -60,6 +58,40 @@ struct menuitem g_HtbOptionsMenuItems[] = {
|
||||
MPOPTION_NOAUTOAIM,
|
||||
menuhandlerMpCheckboxOption,
|
||||
},
|
||||
#ifndef PLATFORM_N64
|
||||
{
|
||||
MENUITEMTYPE_CHECKBOX,
|
||||
0,
|
||||
MENUITEMFLAG_LOCKABLEMINOR | MENUITEMFLAG_LITERAL_TEXT,
|
||||
(uintptr_t)"Start Armed",
|
||||
MPOPTION_SPAWNWITHWEAPON,
|
||||
menuhandlerMpCheckboxOption,
|
||||
},
|
||||
{
|
||||
MENUITEMTYPE_CHECKBOX,
|
||||
0,
|
||||
MENUITEMFLAG_LOCKABLEMINOR | MENUITEMFLAG_LITERAL_TEXT,
|
||||
(uintptr_t)"No Drug Blur",
|
||||
MPOPTION_NODRUGBLUR,
|
||||
menuhandlerMpCheckboxOption,
|
||||
},
|
||||
{
|
||||
MENUITEMTYPE_CHECKBOX,
|
||||
0,
|
||||
MENUITEMFLAG_LOCKABLEMINOR,
|
||||
L_OPTIONS_257, // "Friendly Fire"
|
||||
MPOPTION_FRIENDLYFIRE,
|
||||
menuhandlerMpDisplayTeam,
|
||||
},
|
||||
{
|
||||
MENUITEMTYPE_CHECKBOX,
|
||||
0,
|
||||
MENUITEMFLAG_LOCKABLEMINOR | MENUITEMFLAG_LITERAL_TEXT,
|
||||
(uintptr_t)"No Player on Radar",
|
||||
MPOPTION_NOPLAYERONRADAR,
|
||||
menuhandlerMpCheckboxOption,
|
||||
},
|
||||
#endif
|
||||
{
|
||||
MENUITEMTYPE_CHECKBOX,
|
||||
0,
|
||||
@@ -117,7 +149,7 @@ struct menudialogdef g_HtbOptionsMenuDialog = {
|
||||
g_HtbOptionsMenuItems,
|
||||
mpOptionsMenuDialog,
|
||||
MENUDIALOGFLAG_MPLOCKABLE,
|
||||
&g_ExtGameOptionsMenuDialog,
|
||||
NULL,
|
||||
};
|
||||
|
||||
struct defaultobj *var800869ec = NULL;
|
||||
|
||||
@@ -13,8 +13,6 @@
|
||||
* Points are awarded to each player in the hill at the time that it is won.
|
||||
*/
|
||||
|
||||
extern struct menudialogdef g_ExtGameOptionsMenuDialog;
|
||||
|
||||
MenuItemHandlerResult menuhandlerMpHillTime(s32 operation, struct menuitem *item, union handlerdata *data)
|
||||
{
|
||||
switch (operation) {
|
||||
@@ -81,6 +79,40 @@ struct menuitem g_KohOptionsMenuItems[] = {
|
||||
MPOPTION_NOAUTOAIM,
|
||||
menuhandlerMpCheckboxOption,
|
||||
},
|
||||
#ifndef PLATFORM_N64
|
||||
{
|
||||
MENUITEMTYPE_CHECKBOX,
|
||||
0,
|
||||
MENUITEMFLAG_LOCKABLEMINOR | MENUITEMFLAG_LITERAL_TEXT,
|
||||
(uintptr_t)"Start Armed",
|
||||
MPOPTION_SPAWNWITHWEAPON,
|
||||
menuhandlerMpCheckboxOption,
|
||||
},
|
||||
{
|
||||
MENUITEMTYPE_CHECKBOX,
|
||||
0,
|
||||
MENUITEMFLAG_LOCKABLEMINOR | MENUITEMFLAG_LITERAL_TEXT,
|
||||
(uintptr_t)"No Drug Blur",
|
||||
MPOPTION_NODRUGBLUR,
|
||||
menuhandlerMpCheckboxOption,
|
||||
},
|
||||
{
|
||||
MENUITEMTYPE_CHECKBOX,
|
||||
0,
|
||||
MENUITEMFLAG_LOCKABLEMINOR,
|
||||
L_OPTIONS_257, // "Friendly Fire"
|
||||
MPOPTION_FRIENDLYFIRE,
|
||||
menuhandlerMpDisplayTeam,
|
||||
},
|
||||
{
|
||||
MENUITEMTYPE_CHECKBOX,
|
||||
0,
|
||||
MENUITEMFLAG_LOCKABLEMINOR | MENUITEMFLAG_LITERAL_TEXT,
|
||||
(uintptr_t)"No Player on Radar",
|
||||
MPOPTION_NOPLAYERONRADAR,
|
||||
menuhandlerMpCheckboxOption,
|
||||
},
|
||||
#endif
|
||||
{
|
||||
MENUITEMTYPE_CHECKBOX,
|
||||
0,
|
||||
@@ -146,18 +178,17 @@ struct menudialogdef g_KohOptionsMenuDialog = {
|
||||
g_KohOptionsMenuItems,
|
||||
mpOptionsMenuDialog,
|
||||
MENUDIALOGFLAG_MPLOCKABLE,
|
||||
&g_ExtGameOptionsMenuDialog,
|
||||
NULL,
|
||||
};
|
||||
|
||||
void kohReadSave(struct savebuffer *buffer, u8 version)
|
||||
void kohReadSave(struct savebuffer *buffer)
|
||||
{
|
||||
u8 sz = version > 0 ? 32 : 8;
|
||||
g_Vars.mphilltime = savebufferReadBits(buffer, sz);
|
||||
g_Vars.mphilltime = savebufferReadBits(buffer, 8);
|
||||
}
|
||||
|
||||
void kohWriteSave(struct savebuffer *buffer)
|
||||
{
|
||||
savebufferOr(buffer, g_Vars.mphilltime, 32);
|
||||
savebufferOr(buffer, g_Vars.mphilltime, 8);
|
||||
}
|
||||
|
||||
void kohInit(void)
|
||||
|
||||
@@ -7,8 +7,6 @@
|
||||
* chosen as the victim.
|
||||
*/
|
||||
|
||||
extern struct menudialogdef g_ExtGameOptionsMenuDialog;
|
||||
|
||||
struct menuitem g_PacOptionsMenuItems[] = {
|
||||
{
|
||||
MENUITEMTYPE_CHECKBOX,
|
||||
@@ -58,6 +56,40 @@ struct menuitem g_PacOptionsMenuItems[] = {
|
||||
MPOPTION_NOAUTOAIM,
|
||||
menuhandlerMpCheckboxOption,
|
||||
},
|
||||
#ifndef PLATFORM_N64
|
||||
{
|
||||
MENUITEMTYPE_CHECKBOX,
|
||||
0,
|
||||
MENUITEMFLAG_LOCKABLEMINOR | MENUITEMFLAG_LITERAL_TEXT,
|
||||
(uintptr_t)"Start Armed",
|
||||
MPOPTION_SPAWNWITHWEAPON,
|
||||
menuhandlerMpCheckboxOption,
|
||||
},
|
||||
{
|
||||
MENUITEMTYPE_CHECKBOX,
|
||||
0,
|
||||
MENUITEMFLAG_LOCKABLEMINOR | MENUITEMFLAG_LITERAL_TEXT,
|
||||
(uintptr_t)"No Drug Blur",
|
||||
MPOPTION_NODRUGBLUR,
|
||||
menuhandlerMpCheckboxOption,
|
||||
},
|
||||
{
|
||||
MENUITEMTYPE_CHECKBOX,
|
||||
0,
|
||||
MENUITEMFLAG_LOCKABLEMINOR,
|
||||
L_OPTIONS_257, // "Friendly Fire"
|
||||
MPOPTION_FRIENDLYFIRE,
|
||||
menuhandlerMpDisplayTeam,
|
||||
},
|
||||
{
|
||||
MENUITEMTYPE_CHECKBOX,
|
||||
0,
|
||||
MENUITEMFLAG_LOCKABLEMINOR | MENUITEMFLAG_LITERAL_TEXT,
|
||||
(uintptr_t)"No Player on Radar",
|
||||
MPOPTION_NOPLAYERONRADAR,
|
||||
menuhandlerMpCheckboxOption,
|
||||
},
|
||||
#endif
|
||||
{
|
||||
MENUITEMTYPE_CHECKBOX,
|
||||
0,
|
||||
@@ -115,7 +147,7 @@ struct menudialogdef g_PacOptionsMenuDialog = {
|
||||
g_PacOptionsMenuItems,
|
||||
mpOptionsMenuDialog,
|
||||
MENUDIALOGFLAG_MPLOCKABLE,
|
||||
&g_ExtGameOptionsMenuDialog,
|
||||
NULL,
|
||||
};
|
||||
|
||||
void pacReset(void)
|
||||
|
||||
Reference in new issue
Block a user