-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrai_init.js
More file actions
18 lines (17 loc) · 821 Bytes
/
Copy pathrai_init.js
File metadata and controls
18 lines (17 loc) · 821 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
function rai_init(id,prog,fileadd) {
installer_do(function(data) {
var post = "";
if (fileadd && !(post = installer_read(data.fold+"/",fileadd)))
post = "";
var pre = "var IDSH = '"+id+"';\n"+
"var PROG_NAME = '"+prog+"';\n"+installer_string_script_import(null,'rai_main')+post;
var script = installer_load(null,"/"+id+"/"+id,Script.FLAG_APP_MENU,data,pre);
pre = "var IDSH = '"+id+"';\n"+
"var PROG_NAME = '"+prog+"';\n"+installer_string_script_import(null,'rai_tap')+post;
installer_load(null,"/"+id+"/"+id+"_tap",0,data,pre);
installer_sh_runscript(id,"i.tap","setplayer",id,data);
return script;
});
}
var script = getScriptByPathAndName(null, "installer");
eval(script.getText());