1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-23 07:43:01 +01:00

Also check for the presence of RCT Classic

This commit is contained in:
Gymnasiast
2025-05-11 23:48:48 +02:00
parent d5534b061a
commit fd5e95e29d

View File

@@ -555,10 +555,15 @@ Function un.onInit
FunctionEnd FunctionEnd
Function DoNotInstallInRCT2Folder Function DoNotInstallInRCT2Folder
IfFileExists "$INSTDIR\Data\g1.dat" exists notexists IfFileExists "$INSTDIR\Data\g1.dat" datag1exists datag1notexists
exists: datag1exists:
MessageBox MB_OK|MB_ICONSTOP `You cannot install OpenRCT2 to the same directory as RollerCoaster Tycoon 2.` MessageBox MB_OK|MB_ICONSTOP `You cannot install OpenRCT2 to the same directory as RollerCoaster Tycoon 2.`
Abort Abort
notexists: datag1notexists:
IfFileExists "$INSTDIR\Assets\g1.dat" assetsg1exists assetsg1notexists
assetsg1exists:
MessageBox MB_OK|MB_ICONSTOP `You cannot install OpenRCT2 to the same directory as RollerCoaster Classic.`
Abort
assetsg1notexists:
FunctionEnd FunctionEnd
; eof ; eof