Fully adj to 103 (no OSK yet)

This commit is contained in:
2025-11-07 16:11:17 +01:00
parent 5ad5f16bdb
commit 9432dd1d84
7 changed files with 42 additions and 15 deletions
+8 -1
View File
@@ -14,6 +14,11 @@ let patch = fs.readFileSync("./EFB/efb-js.patch").toString();
let patchedFile = applyPatch(file1Contents, patch);
fs.writeFileSync(`${outPath}/efb.js`, patchedFile);
file1Contents = fs.readFileSync("./EFB/efb.index.js").toString();
patch = fs.readFileSync("./EFB/efb-index-js.patch").toString();
patchedFile = applyPatch(file1Contents, patch);
fs.writeFileSync(`${outPath}/efb.index.js`, patchedFile);
file1Contents = fs.readFileSync("./EFB/efb.html").toString();
patch = fs.readFileSync("./EFB/efb-html.patch").toString();
patchedFile = applyPatch(file1Contents, patch);
@@ -24,8 +29,10 @@ var lineReader = readline.createInterface({
input: fs.createReadStream(`${outPath}/App.js`),
});
lineReader.on("line", (line) => {
if (line.startsWith("import") || line.startsWith("export")) {
if (line.startsWith("import")) {
output += "// " + line + "\n";
} else if (line.startsWith("export")) {
output += "window.KH_LM = App;\n";
} else {
output += line + "\n";
}