Clear out data dir before upgrading

This commit is contained in:
Gymnasiast committed 2025-05-11 23:10:32 +02:00
1 parent 1a571cd4e4
commit d4b6d20dd5
1 file changed
+2 -1
+2 -1
View File
@@ -150,7 +150,8 @@ Section "!OpenRCT2" Section1
SetShellVarContext all
; Copy data files
; Copy data files. Clear out the old dir first, to ensure upgrades do not result in old objects sticking around.
RMDir /r "$INSTDIR\data"
SetOutPath "$INSTDIR\data\"
File /r ${PATH_ROOT}bin\data\*