diff options
author | Rémy Raes <raes.remy@gmail.com> | 2024-11-22 00:50:19 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-22 00:50:19 +0100 |
commit | e7aa1c2a3459c9a4ad63d89b5da577bf10e8366c (patch) | |
tree | e042fe8dcde883495e04697adc626f7eeb8d3af9 /Northstar.Client/mod/scripts/vscripts/ui/panel_mainmenu.nut | |
parent | c1649d1e1d719b2859041afa1cbff32ee090a885 (diff) | |
download | NorthstarMods-e7aa1c2a3459c9a4ad63d89b5da577bf10e8366c.tar.gz NorthstarMods-e7aa1c2a3459c9a4ad63d89b5da577bf10e8366c.zip |
Refactor getting mod information (#899)
Mod counterpart to the launcher PR.
Adds a struct containing mod information instead of getting every field with its own dedicated function
Diffstat (limited to 'Northstar.Client/mod/scripts/vscripts/ui/panel_mainmenu.nut')
-rw-r--r-- | Northstar.Client/mod/scripts/vscripts/ui/panel_mainmenu.nut | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Northstar.Client/mod/scripts/vscripts/ui/panel_mainmenu.nut b/Northstar.Client/mod/scripts/vscripts/ui/panel_mainmenu.nut index 2f1bcf02..330cd0d6 100644 --- a/Northstar.Client/mod/scripts/vscripts/ui/panel_mainmenu.nut +++ b/Northstar.Client/mod/scripts/vscripts/ui/panel_mainmenu.nut @@ -431,9 +431,9 @@ void function UpdatePlayButton( var button ) { // restrict non-vanilla players from accessing official servers bool hasNonVanillaMods = false - foreach ( string modName in NSGetModNames() ) + foreach ( ModInfo mod in NSGetModsInformation() ) { - if ( NSIsModEnabled( modName ) && NSIsModRequiredOnClient( modName ) ) + if ( mod.enabled && mod.requiredOnClient ) { hasNonVanillaMods = true break |