updated app.js and relatives

This commit is contained in:
Namhyeon Go 2020-07-08 08:03:02 +09:00
parent 5916494d05
commit e69d7385b5
2 changed files with 19 additions and 1 deletions

16
app.js
View File

@ -95,6 +95,22 @@ function require(FN) {
return cache[FN];
}
function include(FN) {
var FSO = CreateObject("Scripting.FileSystemObject");
var T = null;
try {
var TS = FSO.OpenTextFile(FN, 1);
if (TS.AtEndOfStream) return "";
T = TS.ReadAll();
TS.Close();
TS = null;
eval(T);
} catch (e) {
console.error("LOAD ERROR! " + e.number + ", " + e.description + ", FN=" + FN, 1);
return;
}
}
/////////////////////////////////////////////////////////////////////////////////
// Load script, and call app.main()
/////////////////////////////////////////////////////////////////////////////////

View File

@ -1,4 +1,6 @@
/*
* uriloader.js
*/
return {
main: function(args) {