Advertisement
Guest User

Untitled

a guest
Apr 16th, 2018
1,316
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 3.52 KB | None | 0 0
  1. @echo off
  2. set ztmp=C:\Users\Your_sys_username\AppData\Local\Temp\ztmp
  3. set MYFILES=C:\Users\Your_sys_username\AppData\Local\Temp\afolder
  4. set bfcec=tmp{randomnumberhere}.exe
  5. set cmdline=
  6. SHIFT /0
  7. @echo off
  8. title Ikenie to Yuki no Setsuna (I am Setsuna.) Localization Project
  9. if not exist "PCSG00756" goto misdir
  10. goto setup
  11.  
  12. :misdir
  13. cls
  14. echo ***************************************************************
  15. echo Ikenie to Yuki no Setsuna (I am Setsuna.) Localization Project
  16. echo By: Ignis00
  17. echo Build: 1.0 (December 10, 2016)
  18. echo Website: http://bit.ly/2hoKYVG
  19. echo ***************************************************************
  20. echo.
  21. echo ERROR: "PCSG00756" folder missing.
  22. echo Place the "PCSG00756" folder in the same directory as this
  23. echo executable.
  24. echo.
  25. pause
  26. exit
  27.  
  28. :setup
  29. cls
  30. echo ***************************************************************
  31. echo Ikenie to Yuki no Setsuna (I am Setsuna.) Localization Project
  32. echo By: Ignis00
  33. echo Build: 1.0 (December 10, 2016)
  34. echo Website: http://bit.ly/2hoKYVG
  35. echo ***************************************************************
  36. echo.
  37. echo Setting up workspace!
  38. echo.
  39. set mdir=%cd%
  40. cd %TEMP%
  41. if not exist "ias" mkdir "ias"
  42. cd ias
  43. set wdir=%cd%
  44. cd %mdir%\bin
  45. robocopy . %wdir% /njh /njs /ndl /nc /ns /nfl
  46. cd %wdir%
  47. uz -q -o archive.bin -d %wdir%\patch
  48. if not exist "work" mkdir "work"
  49. goto apply
  50.  
  51. :apply
  52. cls
  53. echo ***************************************************************
  54. echo Ikenie to Yuki no Setsuna (I am Setsuna.) Localization Project
  55. echo By: Ignis00
  56. echo Build: 1.0 (December 10, 2016)
  57. echo Website: http://bit.ly/2hoKYVG
  58. echo ***************************************************************
  59. echo.
  60. echo Applying localization patch.
  61. echo.
  62. xdelta3 -d -f -s %mdir%\PCSG00756\archive.psarc "patch/01.xdt" "work/archive.psarc"
  63. xdelta3 -d -f -s %mdir%\PCSG00756\Media\StreamingAssets\PSVita\parameter.cpk "patch/02.xdt" "work/parameter.cpk"
  64. xdelta3 -d -f -s %mdir%\PCSG00756\Media\Managed\Assembly-CSharp.dll "patch/03.xdt" "work/Assembly-CSharp.dll"
  65. xdelta3 -d -f -s %mdir%\PCSG00756\sce_sys\param.sfo "patch/04.xdt" "work/param.sfo"
  66. xdelta3 -d -f -s %mdir%\PCSG00756\sce_sys\livearea\contents\frame3.png "patch/05.xdt" "work/frame3.png"
  67. goto tink
  68.  
  69. :tink
  70. cls
  71. echo ***************************************************************
  72. echo Ikenie to Yuki no Setsuna (I am Setsuna.) Localization Project
  73. echo By: Ignis00
  74. echo Build: 1.0 (December 10, 2016)
  75. echo Website: http://bit.ly/2hoKYVG
  76. echo ***************************************************************
  77. echo.
  78. echo Finalizing build.
  79. echo.
  80. robocopy %wdir%\work\ %mdir%\PCSG00756 archive.psarc /njh /njs /ndl /nc /ns /nfl
  81. robocopy %wdir%\work\ %mdir%\PCSG00756\Media\StreamingAssets\PSVita parameter.cpk /njh /njs /ndl /nc /ns /nfl
  82. robocopy %wdir%\work\ %mdir%\PCSG00756\Media\Managed Assembly-CSharp.dll /njh /njs /ndl /nc /ns /nfl
  83. robocopy %wdir%\work\ %mdir%\PCSG00756\sce_sys param.sfo /njh /njs /ndl /nc /ns /nfl
  84. robocopy %wdir%\work\ %mdir%\PCSG00756\sce_sys\livearea\contents frame3.png /njh /njs /ndl /nc /ns /nfl
  85. cd %mdir%
  86. rename PCSG00756 PCSG00756_
  87. rmdir /s /q %wdir%
  88.  
  89. :fin
  90. cls
  91. echo ***************************************************************
  92. echo Ikenie to Yuki no Setsuna (I am Setsuna.) Localization Project
  93. echo By: Ignis00
  94. echo Build: 1.0 (December 10, 2016)
  95. echo Website: http://bit.ly/2hoKYVG
  96. echo ***************************************************************
  97. echo.
  98. echo Finished! Thank you for all your support!
  99. echo Help support the developers by buying the game!
  100. echo.
  101. pause
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement