Files
App-Installer-For-Windows-8…/shared/html/js/init.js
2025-11-29 23:02:15 +08:00

24 lines
699 B
JavaScript

(function(global) {
"use strict";
var storage = Bridge.External.Storage;
var path = storage.path;
var root = path.getDir(path.program);
var respath = path.combine(root, "reslib.dll");
var res = Bridge.Resources;
global.respath = respath;
global.getPublicRes = function(resId) {
return res.fromfile(respath, resId);
}
global.publicRes = function(resId) {
return getFileResPair(respath, resId);
}
function ready(e) {
function nextstep() {
Resources.processAll();
}
if (typeof WinJS !== "undefined") WinJS.UI.processAll().done(nextstep);
else nextstep();
}
OnLoad.add(ready);
})(this);