From ad59e1af3836350d3cd6eb16d3d91b7f20aaf9ce Mon Sep 17 00:00:00 2001 From: Zanieon Date: Fri, 22 Nov 2024 22:29:42 -0300 Subject: [PATCH] Globalize and move IsCoreMod function --- Northstar.Client/mod/scripts/vscripts/ui/menu_lobby.nut | 7 +++++++ .../mod/scripts/vscripts/ui/menu_ns_serverbrowser.nut | 6 ------ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/Northstar.Client/mod/scripts/vscripts/ui/menu_lobby.nut b/Northstar.Client/mod/scripts/vscripts/ui/menu_lobby.nut index 922cbd431..80854bfdd 100644 --- a/Northstar.Client/mod/scripts/vscripts/ui/menu_lobby.nut +++ b/Northstar.Client/mod/scripts/vscripts/ui/menu_lobby.nut @@ -42,6 +42,7 @@ global function OnStoreBundlesButton_Activate global function OnStoreNewReleasesButton_Activate global function StartNSMatchmaking +global function IsCoreMod const string MATCHMAKING_AUDIO_CONNECTING = "menu_campaignsummary_titanunlocked" @@ -1917,4 +1918,10 @@ string function FillInServerModsLabel( array mods ) ret += format( " %s v%s\n", mod.name, mod.version ) return ret +} + +const array CORE_MODS = ["Northstar.Client", "Northstar.Coop", "Northstar.CustomServers", "Northstar.Custom"] +bool function IsCoreMod( string modName ) +{ + return CORE_MODS.find( modName ) != -1 } \ No newline at end of file diff --git a/Northstar.Client/mod/scripts/vscripts/ui/menu_ns_serverbrowser.nut b/Northstar.Client/mod/scripts/vscripts/ui/menu_ns_serverbrowser.nut index f2effd128..c0f0d2acc 100644 --- a/Northstar.Client/mod/scripts/vscripts/ui/menu_ns_serverbrowser.nut +++ b/Northstar.Client/mod/scripts/vscripts/ui/menu_ns_serverbrowser.nut @@ -1364,12 +1364,6 @@ void function TriggerConnectToServerCallbacks( ServerInfo ornull targetServer = } } -const array CORE_MODS = ["Northstar.Client", "Northstar.Coop", "Northstar.CustomServers", "Northstar.Custom"] -bool function IsCoreMod( string modName ) -{ - return CORE_MODS.find( modName ) != -1 -} - array function GetModVersions( string modName ) { array versions = []