galo пре 2 година
родитељ
комит
29b97d9830
1 измењених фајлова са 10 додато и 0 уклоњено
  1. 10 0
      launcher.gd

+ 10 - 0
launcher.gd

@@ -20,6 +20,16 @@ func _ready():
 	else:
 		directory.make_dir("user://patches")
 	$HTTPRequest2.request(versionfile)
+	
+	print('gen bat file')
+	var save_game = File.new()
+	save_game.open("res://run.bat", File.WRITE)
+	save_game.store_line('pushd %~dp0')
+	save_game.store_line('gamelauncher.exe --main-pack GhostHand.pck')
+	save_game.store_line('popd')
+	save_game.close()
+	
+	
 
 func dowloadupdate():
 	print('dowloading patch')