mirror of
https://github.com/thegatesbrowser/thegates.git
synced 2025-08-24 11:17:26 -04:00
move Sandbox.exe and ipc files to sandbox folder
This commit is contained in:
parent
8aee706761
commit
32ef338088
5 changed files with 10 additions and 3 deletions
3
app/.gitignore
vendored
3
app/.gitignore
vendored
|
@ -1,2 +1,5 @@
|
||||||
# Godot 4+ specific ignores
|
# Godot 4+ specific ignores
|
||||||
.godot/
|
.godot/
|
||||||
|
|
||||||
|
# for ipc files (inter process communication)
|
||||||
|
sandbox/
|
|
@ -6,5 +6,5 @@
|
||||||
script = ExtResource("1_q0dqh")
|
script = ExtResource("1_q0dqh")
|
||||||
linux = "sandbox/Sandbox.x86_64"
|
linux = "sandbox/Sandbox.x86_64"
|
||||||
linux_debug = "godot.linuxbsd.template_debug.dev.sandbox.x86_64.llvm"
|
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"
|
windows_debug = "godot.windows.template_debug.dev.sandbox.x86_64.exe"
|
||||||
|
|
|
@ -6,6 +6,8 @@ class_name SandboxManager
|
||||||
@export var snbx_executable: SandboxExecutable
|
@export var snbx_executable: SandboxExecutable
|
||||||
@export var snbx_env: SandboxEnv
|
@export var snbx_env: SandboxEnv
|
||||||
|
|
||||||
|
const IPC_FOLDER := "sandbox"
|
||||||
|
|
||||||
var sandbox_pid: int
|
var sandbox_pid: int
|
||||||
|
|
||||||
|
|
||||||
|
@ -47,6 +49,8 @@ func start_sandbox_windows(gate: Gate) -> void:
|
||||||
if not snbx_executable.exists():
|
if not snbx_executable.exists():
|
||||||
Debug.logerr("Sandbox executable not found at " + snbx_executable.path); return
|
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 pack_file = ProjectSettings.globalize_path(gate.resource_pack)
|
||||||
var shared_libs = ProjectSettings.globalize_path(gate.shared_libs_dir)
|
var shared_libs = ProjectSettings.globalize_path(gate.shared_libs_dir)
|
||||||
var args = [
|
var args = [
|
||||||
|
|
2
godot
2
godot
|
@ -1 +1 @@
|
||||||
Subproject commit 2ff9ee5a145b789c179e5e255378ab12e6d37238
|
Subproject commit 29d6d651a6dd28c0a132a97de65098a7a13e145c
|
Loading…
Add table
Add a link
Reference in a new issue