Mod file overlay system

Mods can now replace DVD files with contents of their "overlay" folder

(I'll update the docs later when I do a full pass and make non-code mods
more of a first-class citizen)

Fixes https://github.com/TwilitRealm/dusklight/issues/1306
This commit is contained in:
PJB3005
2026-05-15 21:04:42 +02:00
parent 37e5b7409d
commit 42d412a06e
7 changed files with 138 additions and 3 deletions
+3
View File
@@ -14,6 +14,7 @@
#include <string>
#include <unordered_map>
#include "aurora/dvd.h"
#include "dusk/io.hpp"
#include "miniz.h"
#include "nlohmann/json.hpp"
@@ -557,6 +558,8 @@ void ModLoader::init() {
return;
}
initOverlayFiles();
DuskLog.info("ModLoader: initializing {} mod(s)...", m_mods.size());
for (auto& mod : m_mods) {
buildAPI(mod);