mirror of
https://github.com/modernw/App-Installer-For-Windows-8.x-Reset.git
synced 2026-04-11 17:57:19 +10:00
25 lines
727 B
JavaScript
25 lines
727 B
JavaScript
(function(global) {
|
|
"use strict";
|
|
var res = Bridge.Resources;
|
|
var storage = Bridge.External.Storage;
|
|
var path = storage.path;
|
|
var root = path.getDir(path.program);
|
|
|
|
function getLibRes(libfilename, resid) {
|
|
var libpath = path.combine(root, libfilename);
|
|
return res.fromfile(libpath, resid);
|
|
}
|
|
|
|
function getSettingsItem(page, displayName) {
|
|
return {
|
|
page: page,
|
|
displayName: displayName
|
|
};
|
|
}
|
|
var settingItems = {
|
|
appinstaller: getSettingsItem("appinstaller.html", getLibRes("appinstaller.exe", 300))
|
|
};
|
|
Object.defineProperty(global, "settingPages", {
|
|
get: function() { return settingItems; }
|
|
});
|
|
})(this); |