mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
Setup: Skip LttP Rom Selection if the Rom is not needed.
This commit is contained in:
@@ -29,6 +29,7 @@ ArchitecturesAllowed=x64
|
|||||||
AllowNoIcons=yes
|
AllowNoIcons=yes
|
||||||
SetupIconFile={#MyAppIcon}
|
SetupIconFile={#MyAppIcon}
|
||||||
UninstallDisplayIcon={app}\{#MyAppExeName}
|
UninstallDisplayIcon={app}\{#MyAppExeName}
|
||||||
|
; you will likely have to remove the following signtool line when testing/debugging localy. Don't include that change in PRs.
|
||||||
SignTool= signtool
|
SignTool= signtool
|
||||||
LicenseFile= LICENSE
|
LicenseFile= LICENSE
|
||||||
WizardStyle= modern
|
WizardStyle= modern
|
||||||
@@ -126,7 +127,6 @@ end;
|
|||||||
var ROMFilePage: TInputFileWizardPage;
|
var ROMFilePage: TInputFileWizardPage;
|
||||||
var R : longint;
|
var R : longint;
|
||||||
var rom: string;
|
var rom: string;
|
||||||
|
|
||||||
procedure InitializeWizard();
|
procedure InitializeWizard();
|
||||||
begin
|
begin
|
||||||
rom := FileSearch('Zelda no Densetsu - Kamigami no Triforce (Japan).sfc', WizardDirValue());
|
rom := FileSearch('Zelda no Densetsu - Kamigami no Triforce (Japan).sfc', WizardDirValue());
|
||||||
@@ -144,7 +144,7 @@ begin
|
|||||||
rom := ''
|
rom := ''
|
||||||
ROMFilePage :=
|
ROMFilePage :=
|
||||||
CreateInputFilePage(
|
CreateInputFilePage(
|
||||||
wpLicense,
|
wpSelectComponents,
|
||||||
'Select ROM File',
|
'Select ROM File',
|
||||||
'Where is your Zelda no Densetsu - Kamigami no Triforce (Japan).sfc located?',
|
'Where is your Zelda no Densetsu - Kamigami no Triforce (Japan).sfc located?',
|
||||||
'Select the file, then click Next.');
|
'Select the file, then click Next.');
|
||||||
@@ -155,6 +155,13 @@ begin
|
|||||||
'.sfc');
|
'.sfc');
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
function ShouldSkipPage(PageID: Integer): Boolean;
|
||||||
|
begin
|
||||||
|
Result := False;
|
||||||
|
if PageID = ROMFilePage.ID then
|
||||||
|
Result := not (WizardIsComponentSelected('client/lttp') or WizardIsComponentSelected('generator'));
|
||||||
|
end;
|
||||||
|
|
||||||
function GetROMPath(Param: string): string;
|
function GetROMPath(Param: string): string;
|
||||||
begin
|
begin
|
||||||
if Length(rom) > 0 then
|
if Length(rom) > 0 then
|
||||||
|
|||||||
Reference in New Issue
Block a user