Patch.tjs Xp3filter.tjs Better
Hooking/patching functions
At the heart of the Kirikiri engine lies —the engine's native scripting language. TJS is an object-oriented scripting language with syntax resembling JavaScript. Games built on the Kirikiri engine use TJS files ( .tjs ) to define game logic, handle user interactions, manage system settings, and control virtually every aspect of the gaming experience. The engine executes these scripts when the game runs, creating the interactive visual novel experience players enjoy. Patch.tjs Xp3filter.tjs
A simple but common patch.tjs contains just one line: Hooking/patching functions At the heart of the Kirikiri
: The files are placed in the game's root directory or a specialized "patch" folder. The engine executes these scripts when the game
var originalShowText = Layer.prototype.showText; Layer.prototype.showText = function(text, ...args) text = replaceWithDictionary(text); return originalShowText.call(this, text, ...args); ;
function wildcardToRegex(pattern) return new RegExp("^" + pattern.replace(/*/g, ".*") + "$");