Sfoglia il codice sorgente

Fixes android build.xml files when generated from newproject.bat on Windows.

seanpaultaylor 12 anni fa
parent
commit
bfd6a29bd8
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. 2 1
      newproject.bat

+ 2 - 1
newproject.bat

@@ -152,7 +152,6 @@ REM    rmdir /S /Q %projPath%
 REM Generate relative path from project folder to GamePlay folder
 set gpPath=%cd%
 call:makerelative gpPath "%projPath%\"
-call:replacevar gpPath "\" "\"
 
 mkdir "%projPath%"
 mkdir "%projPath%\src"
@@ -170,6 +169,8 @@ call:replace "%projPath%\%projName%.vcxproj.filters" TemplateGame "%className%"
 copy template\template.vcxproj.user "%projPath%\%projName%.vcxproj.user"
 call:replace "%projPath%\%projName%.vcxproj.user" GAMEPLAY_PATH "%gpPath%"
 
+call:replacevar gpPath "\" "/"
+
 REM Copy Apple XCode project files
 mkdir "%projPath%\%projName%.xcodeproj"
 copy template\template.xcodeproj\project.pbxproj "%projPath%\%projName%.xcodeproj\project.pbxproj"