mirror of
https://git.suyu.dev/suyu/citra-qt-installer.git
synced 2026-01-06 06:27:55 +01:00
Created subfolder for installer
This commit is contained in:
parent
c7edbf4dac
commit
9d4b125f5a
8 changed files with 0 additions and 0 deletions
35
setup/config/installscript.qs
Normal file
35
setup/config/installscript.qs
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
function Controller()
|
||||
{
|
||||
}
|
||||
|
||||
Controller.prototype.ComponentSelectionPageCallback = function()
|
||||
{
|
||||
/*console.log("Kernel type: " + systemInfo.kernelType);
|
||||
|
||||
var platform;
|
||||
|
||||
if (systemInfo.kernelType === "winnt") { // Windows
|
||||
platform = "windows";
|
||||
} else if (systemInfo.kernelType === "darwin") { // Mac
|
||||
platform = "osx";
|
||||
} else if (systemInfo.kernelType === "linux") { // Linux
|
||||
platform = "linux";
|
||||
} else { // else, no installable components will appear
|
||||
platform = "unknown";
|
||||
}
|
||||
|
||||
var components = installer.components();
|
||||
for (var i = 0; i < components.length; i++) {
|
||||
var component = components[i];
|
||||
var name = component.name
|
||||
.replace("msvc", "windows")
|
||||
.replace("mingw", "windows");
|
||||
if (name.indexOf(platform) === -1) {
|
||||
component.setValue("Virtual", "true");
|
||||
component.setValue("Default", "false");
|
||||
} else {
|
||||
component.setValue("Default", "true"); // This only applies to "script" tagged components
|
||||
component.setValue("Enabled", "true");
|
||||
}
|
||||
}*/
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue