Skip to content

Commit

Permalink
refactor: use a mod list to define if a mod is a core mod
Browse files Browse the repository at this point in the history
  • Loading branch information
Alystrasz committed Aug 9, 2024
1 parent c8d155b commit 0fa9b70
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1377,7 +1377,8 @@ 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 modName.len() > 10 && modName.slice(0, 10) == "Northstar."
return CORE_MODS.find( modName ) != -1
}

0 comments on commit 0fa9b70

Please sign in to comment.