aboutsummaryrefslogtreecommitdiff
path: root/Northstar.Client/mod/scripts/vscripts/ui/panel_mainmenu.nut
diff options
context:
space:
mode:
authorRémy Raes <raes.remy@gmail.com>2024-11-22 00:50:19 +0100
committerGitHub <noreply@github.com>2024-11-22 00:50:19 +0100
commite7aa1c2a3459c9a4ad63d89b5da577bf10e8366c (patch)
treee042fe8dcde883495e04697adc626f7eeb8d3af9 /Northstar.Client/mod/scripts/vscripts/ui/panel_mainmenu.nut
parentc1649d1e1d719b2859041afa1cbff32ee090a885 (diff)
downloadNorthstarMods-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.nut4
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