galo 2 лет назад
Родитель
Сommit
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')