Skip to content

Commit

Permalink
Globalize and move IsCoreMod function
Browse files Browse the repository at this point in the history
  • Loading branch information
Zanieon committed Nov 23, 2024
1 parent 0bc866b commit ad59e1a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
7 changes: 7 additions & 0 deletions Northstar.Client/mod/scripts/vscripts/ui/menu_lobby.nut
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down Expand Up @@ -1917,4 +1918,10 @@ string function FillInServerModsLabel( array<RequiredModInfo> mods )
ret += format( " %s v%s\n", mod.name, mod.version )

return ret
}

const array<string> CORE_MODS = ["Northstar.Client", "Northstar.Coop", "Northstar.CustomServers", "Northstar.Custom"]
bool function IsCoreMod( string modName )
{
return CORE_MODS.find( modName ) != -1
}
Original file line number Diff line number Diff line change
Expand Up @@ -1364,12 +1364,6 @@ void function TriggerConnectToServerCallbacks( ServerInfo ornull targetServer =
}
}

const array<string> CORE_MODS = ["Northstar.Client", "Northstar.Coop", "Northstar.CustomServers", "Northstar.Custom"]
bool function IsCoreMod( string modName )
{
return CORE_MODS.find( modName ) != -1
}

array<string> function GetModVersions( string modName )
{
array<string> versions = []
Expand Down

0 comments on commit ad59e1a

Please sign in to comment.