Skip to content

Commit b21e68c

Browse files
committed
Make it work under nw 0.54.1
1 parent 8240461 commit b21e68c

File tree

7 files changed

+3041
-108
lines changed

7 files changed

+3041
-108
lines changed

www/index.html

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
process.exit(0);
1313
}
1414
</script>
15+
<script src="modloader/mime.js"></script>
1516
<script src="modloader/fast-json-patch.min.js"></script>
1617
<script src="modloader/overlayfs_utils.js"></script>
1718
<script src="modloader/logging.js"></script>

www/modloader/early_loader.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,8 @@
122122
if ($modLoader.realArgv.includes("--trace-vfs")) {
123123
window._logLine("[TRACING] " + message);
124124
}
125-
}
125+
},
126+
$nwMajor: parseInt(process.versions.nw.match(/^\d*\.(\d*)\.\d*$/)[1])
126127
}; // BaseModLoader object
127128

128129
/* Install the argv handler and shadow the true argv object to allow the base game to work normally */ {

0 commit comments

Comments
 (0)