Skip to content

Commit

Permalink
Hide remote mods in mods display (#799)
Browse files Browse the repository at this point in the history
As they are supposed to be disabled unless joining a server that requires that mod.
  • Loading branch information
Alystrasz authored Aug 29, 2024
1 parent ffc5dfd commit 3d278b3
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/nativefuncs.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@
"returnTypeString":"void",
"argTypes":"string modName, bool enabled"
},
{
"name":"NSIsModRemote",
"helpText":"",
"returnTypeString":"bool",
"argTypes":"string modName"
},
{
"name":"NSGetModDescriptionByModName",
"helpText":"",
Expand Down Expand Up @@ -266,6 +272,12 @@
"returnTypeString":"void",
"argTypes":"string modName, bool enabled"
},
{
"name":"NSIsModRemote",
"helpText":"",
"returnTypeString":"bool",
"argTypes":"string modName"
},
{
"name":"NSGetModDescriptionByModName",
"helpText":"",
Expand Down Expand Up @@ -466,6 +478,12 @@
"returnTypeString":"void",
"argTypes":"string modName, bool enabled"
},
{
"name":"NSIsModRemote",
"helpText":"",
"returnTypeString":"bool",
"argTypes":"string modName"
},
{
"name":"NSGetModDescriptionByModName",
"helpText":"",
Expand Down
4 changes: 4 additions & 0 deletions Northstar.Client/mod/scripts/vscripts/ui/menu_ns_modmenu.nut
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,10 @@ void function RefreshMods()
{
string mod = modNames[i]

// Do not display remote mods
if ( NSIsModRemote( mod ) )
continue

if ( searchTerm.len() && mod.tolower().find( searchTerm ) == null )
continue

Expand Down

0 comments on commit 3d278b3

Please sign in to comment.