Skip to content

Commit

Permalink
- changed: disabled mods won't be checked for updates on launch
Browse files Browse the repository at this point in the history
  • Loading branch information
ZiDeveloper committed Jan 23, 2025
1 parent 9e96a4a commit 0fb77d3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Injector/AutoUpdater.gd
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,8 @@ func checkModUpdates():
var updatableMods = []
var mwsIds = []
for mod in Main.Mods.mods:
if mod.disabled:
continue
if mod.config.has_section_key("updates", "modworkshop"):
updatableMods.append(mod)
mwsIds.append(mod.config.get_value("updates", "modworkshop"))
Expand Down
2 changes: 2 additions & 0 deletions Injector/ModList.gd
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ var mods : Array[ModInfo] = []
class ModInfo:
var zipPath : String
var config : ConfigFile
var disabled : bool

func _ready():
List.set_column_title(0, "Name")
Expand Down Expand Up @@ -66,6 +67,7 @@ func loadMods():
var modi = ModInfo.new()
modi.config = cfg
modi.zipPath = modsdir.path_join(zipname)
modi.disabled = disabled
mods.append(modi)

var li = List.create_item()
Expand Down

0 comments on commit 0fb77d3

Please sign in to comment.