mirror of
https://github.com/modernw/App-Installer-For-Windows-8.x-Reset.git
synced 2026-04-11 17:57:19 +10:00
27 lines
811 B
JavaScript
27 lines
811 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);
|
|
}
|
|
global.stringRes = function(resId) {
|
|
return Bridge.External.StringResources.getString(resId);
|
|
}
|
|
|
|
function ready(e) {
|
|
function nextstep() {
|
|
Resources.processAll();
|
|
}
|
|
if (typeof WinJS !== "undefined") WinJS.UI.processAll().done(nextstep);
|
|
else nextstep();
|
|
}
|
|
OnLoad.add(ready);
|
|
})(this); |