1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-10 17:42:29 +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
Function DoNotInstallInRCT2Folder
IfFileExists "$INSTDIR\Data\g1.dat" exists notexists
exists:
IfFileExists "$INSTDIR\Data\g1.dat" datag1exists datag1notexists
datag1exists:
MessageBox MB_OK|MB_ICONSTOP `You cannot install OpenRCT2 to the same directory as RollerCoaster Tycoon 2.`
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
; eof