mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-24 02:30:46 +00:00
CON: Add read-only access to ud.config.MusicToggle through the "musictoggle" member.
git-svn-id: https://svn.eduke32.com/eduke32@4970 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
b355d75ab3
commit
e8f842ac28
4 changed files with 4 additions and 0 deletions
|
@ -1125,6 +1125,7 @@ const memberlabel_t UserdefsLabels[]=
|
|||
{ "weaponscale", USERDEFS_WEAPONSCALE, 0, 0 },
|
||||
{ "textscale", USERDEFS_TEXTSCALE, 0, 0 },
|
||||
{ "runkey_mode", USERDEFS_RUNKEY_MODE, 0, 0 },
|
||||
{ "musictoggle", USERDEFS_MUSICTOGGLE, 0, 0 },
|
||||
{ "", -1, 0, 0 } // END OF LIST
|
||||
};
|
||||
|
||||
|
|
|
@ -430,6 +430,7 @@ enum UserdefsLabel_t
|
|||
USERDEFS_M_ORIGIN_X,
|
||||
USERDEFS_M_ORIGIN_Y,
|
||||
USERDEFS_PLAYERBEST,
|
||||
USERDEFS_MUSICTOGGLE,
|
||||
USERDEFS_END
|
||||
};
|
||||
|
||||
|
|
|
@ -252,6 +252,7 @@ static void __fastcall VM_AccessUserdef(int32_t iSet, int32_t lLabelID, int32_t
|
|||
case USERDEFS_M_ORIGIN_X: lLabelID = ud.m_origin.x; break;
|
||||
case USERDEFS_M_ORIGIN_Y: lLabelID = ud.m_origin.y; break;
|
||||
case USERDEFS_PLAYERBEST: lLabelID = ud.playerbest; break;
|
||||
case USERDEFS_MUSICTOGGLE: lLabelID = ud.config.MusicToggle; break;
|
||||
default: lLabelID = -1; break;
|
||||
}
|
||||
Gv_SetVarX(lVar2, lLabelID);
|
||||
|
|
|
@ -875,6 +875,7 @@ local UserdefLabels = {
|
|||
playerbest = UDRO".playerbest",
|
||||
mouseflip = UDRO".mouseflip",
|
||||
multimode = { "1" },
|
||||
musictoggle = UDRO".config.MusicToggle",
|
||||
noexits = UDRO".noexits",
|
||||
overhead_on = UD".overhead_on",
|
||||
recstat = UDRO".recstat",
|
||||
|
|
Loading…
Reference in a new issue