Ver código fonte

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

seanpaultaylor 12 anos atrás
pai
commit
bfd6a29bd8
1 arquivos alterados com 2 adições e 1 exclusões
  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
 REM Generate relative path from project folder to GamePlay folder
 set gpPath=%cd%
 set gpPath=%cd%
 call:makerelative gpPath "%projPath%\"
 call:makerelative gpPath "%projPath%\"
-call:replacevar gpPath "\" "\"
 
 
 mkdir "%projPath%"
 mkdir "%projPath%"
 mkdir "%projPath%\src"
 mkdir "%projPath%\src"
@@ -170,6 +169,8 @@ call:replace "%projPath%\%projName%.vcxproj.filters" TemplateGame "%className%"
 copy template\template.vcxproj.user "%projPath%\%projName%.vcxproj.user"
 copy template\template.vcxproj.user "%projPath%\%projName%.vcxproj.user"
 call:replace "%projPath%\%projName%.vcxproj.user" GAMEPLAY_PATH "%gpPath%"
 call:replace "%projPath%\%projName%.vcxproj.user" GAMEPLAY_PATH "%gpPath%"
 
 
+call:replacevar gpPath "\" "/"
+
 REM Copy Apple XCode project files
 REM Copy Apple XCode project files
 mkdir "%projPath%\%projName%.xcodeproj"
 mkdir "%projPath%\%projName%.xcodeproj"
 copy template\template.xcodeproj\project.pbxproj "%projPath%\%projName%.xcodeproj\project.pbxproj"
 copy template\template.xcodeproj\project.pbxproj "%projPath%\%projName%.xcodeproj\project.pbxproj"