Patch.tjs Xp3filter.tjs

// Patch.tjs - load priority function PatchEntry() // Register patch folder as high-priority storage Storages.addStorage("patch/", 0); // priority 0 = highest // Log overrides for debugging Debug.log("Patch system initialized");

function XP3Filter(archive, filename) for (var pattern in overrideMap) if (filename.match(wildcardToRegex(pattern))) var newPath = overrideMap[pattern] + filename; if (Storages.isExistentStorage(newPath)) return newPath; // redirect to patch file Patch.tjs Xp3filter.tjs

return origLoad.apply(this, arguments); ; // Patch