move Sandbox.exe and ipc files to sandbox folder

This commit is contained in:
Nordup 2024-05-10 18:27:15 +04:00
parent 8aee706761
commit 32ef338088
5 changed files with 10 additions and 3 deletions

3
app/.gitignore vendored
View file

@ -1,2 +1,5 @@
# Godot 4+ specific ignores
.godot/
# for ipc files (inter process communication)
sandbox/

View file

@ -9,4 +9,4 @@ Otherwise Windows will downscale 32x32 image to 24x24 <br/>
**Windows Native Icon** in project settings <br/>
`toolbar_icon.ico - 16x16, 24x24, 32x32` <br/>
Refer to: https://learn.microsoft.com/en-us/windows/win32/uxguide/vis-icons
Refer to: https://learn.microsoft.com/en-us/windows/win32/uxguide/vis-icons

View file

@ -6,5 +6,5 @@
script = ExtResource("1_q0dqh")
linux = "sandbox/Sandbox.x86_64"
linux_debug = "godot.linuxbsd.template_debug.dev.sandbox.x86_64.llvm"
windows = "Sandbox.exe"
windows = "sandbox/Sandbox.exe"
windows_debug = "godot.windows.template_debug.dev.sandbox.x86_64.exe"

View file

@ -6,6 +6,8 @@ class_name SandboxManager
@export var snbx_executable: SandboxExecutable
@export var snbx_env: SandboxEnv
const IPC_FOLDER := "sandbox"
var sandbox_pid: int
@ -47,6 +49,8 @@ func start_sandbox_windows(gate: Gate) -> void:
if not snbx_executable.exists():
Debug.logerr("Sandbox executable not found at " + snbx_executable.path); return
DirAccess.make_dir_recursive_absolute(IPC_FOLDER) # TODO: move to snbx_env
var pack_file = ProjectSettings.globalize_path(gate.resource_pack)
var shared_libs = ProjectSettings.globalize_path(gate.shared_libs_dir)
var args = [

2
godot

@ -1 +1 @@
Subproject commit 2ff9ee5a145b789c179e5e255378ab12e6d37238
Subproject commit 29d6d651a6dd28c0a132a97de65098a7a13e145c