drop collision check for custom mods
Mirror to Codeberg / mirror-to-codeberg (push) Waiting to run

Mod hashes are taken from the directory names, which cannot be the same
at the filesystem level. Custom mod hashes are also unique from local
mods because they are given a different namespace.
This commit is contained in:
aclist committed 2026-06-11 16:17:02 +09:00
1 parent 77df66979a
commit ad85bb7343
3 files changed
+5 -19

No files matched your search

+1 -10
View File
@@ -54,16 +54,7 @@ class OfflineManager:
store = ModelFactory().make_mod_store()
store.extend(mods)
has_duplicates = False
seen = set()
for row in store:
mod_id = row[1]
if mod_id in seen:
row[-1]=True
has_duplicates = True
seen.add(mod_id)
func = StoredFunc(lambda: self.emitter.emit("custom_mods_loaded", store, folder, has_duplicates))
func = StoredFunc(lambda: self.emitter.emit("custom_mods_loaded", store, folder))
self.thread_man.set_cleanup_func(func)
def setup(