Patch.tjs Xp3filter.tjs -
Based on the filenames Patch.tjs and Xp3filter.tjs, you are likely looking at Kirikiri/Z-Game Engine (often used for visual novels). These files are typically used for modding, extraction, or file replacement without modifying the original game archives (.xp3 files).
Here are the specific features these two files provide when used together: Patch.tjs Xp3filter.tjs
Xp3filter.tjs (redirects message.ks):
class Xp3Filter
function filterFile(archive, filename, data)
if (filename === "system/message.ks")
var translated = openLocalFile("patch/message_en.ks", "rb");
if (translated) return translated.readAll();
return data;
Patch.tjs (overrides text function):
var originalShowText = Layer.prototype.showText;
Layer.prototype.showText = function(text, ...args)
text = replaceWithDictionary(text);
return originalShowText.call(this, text, ...args);
;
Decryption filter
On-the-fly text patch