replace scene exported project

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By KKIILLOOUU

I searched a way to replace a scene in a exported project. ( Yes it’s Patching ). I looked docs but i don’t understand how to get_the_path from the Game.pck by running patch.exe and using it to replace scene in the game.pck by a scene in patch.pck.

Thank you.

:bust_in_silhouette: Reply From: KKIILLOOUU

func _on_Patch_pressed():
var pathpatch = OS.get_executable_path().get_base_dir().plus_file(“Patch.pck”)
if pathpatch == null:
ProjectSettings.load_resource_pack(pathpatch, true)

I choosed this way to patch ( by the game.exe finaly) but the issue is that scene in Patch.pck not replace old scene in the main project.pck. I believed that if there is same name scene and same path it will erase old scene.