Merge remote-tracking branch 'origin/demo'
This commit is contained in:
commit
19f5f2683e
@ -9,7 +9,7 @@ custom_features=""
|
|||||||
export_filter="all_resources"
|
export_filter="all_resources"
|
||||||
include_filter=""
|
include_filter=""
|
||||||
exclude_filter=""
|
exclude_filter=""
|
||||||
export_path="../demo0.5.3/xiandie.exe"
|
export_path="../demo0.6.0/xiandie.exe"
|
||||||
patches=PackedStringArray()
|
patches=PackedStringArray()
|
||||||
encryption_include_filters=""
|
encryption_include_filters=""
|
||||||
encryption_exclude_filters=""
|
encryption_exclude_filters=""
|
||||||
@ -37,8 +37,8 @@ application/modify_resources=true
|
|||||||
application/icon="uid://cxgwspjv16j7m"
|
application/icon="uid://cxgwspjv16j7m"
|
||||||
application/console_wrapper_icon="uid://cxgwspjv16j7m"
|
application/console_wrapper_icon="uid://cxgwspjv16j7m"
|
||||||
application/icon_interpolation=4
|
application/icon_interpolation=4
|
||||||
application/file_version="0.5.3.0"
|
application/file_version="0.6.0.0"
|
||||||
application/product_version="0.5.3.0"
|
application/product_version="0.6.0.0"
|
||||||
application/company_name="包包丁"
|
application/company_name="包包丁"
|
||||||
application/product_name="衔蝶"
|
application/product_name="衔蝶"
|
||||||
application/file_description="衔蝶"
|
application/file_description="衔蝶"
|
||||||
|
@ -55,14 +55,24 @@ func _apply_compatibility() -> void:
|
|||||||
print("[Compatibility] Switching to 'opengl3' rendering driver.")
|
print("[Compatibility] Switching to 'opengl3' rendering driver.")
|
||||||
# 重启游戏以应用新渲染器
|
# 重启游戏以应用新渲染器
|
||||||
var args = ["--rendering-driver", "opengl3"]
|
var args = ["--rendering-driver", "opengl3"]
|
||||||
# 启动新实例
|
|
||||||
var executable_path = OS.get_executable_path()
|
var executable_path = OS.get_executable_path()
|
||||||
OS.create_process(executable_path, args)
|
OS.create_process(executable_path, args)
|
||||||
|
if OS.get_name() == "Windows":
|
||||||
|
# 使用线程来延迟退出
|
||||||
|
var thread = Thread.new()
|
||||||
|
thread.start(_delayed_quit)
|
||||||
|
else:
|
||||||
get_tree().quit()
|
get_tree().quit()
|
||||||
elif config.compatibility_mode == 3:
|
elif config.compatibility_mode == 3:
|
||||||
print("[Compatibility] Running on 'non-opengl3' rendering driver.")
|
print("[Compatibility] Running on 'non-opengl3' rendering driver.")
|
||||||
|
|
||||||
|
|
||||||
|
func _delayed_quit() -> void:
|
||||||
|
OS.delay_msec(100) # 等待 100 毫秒
|
||||||
|
OS.kill(OS.get_process_id())
|
||||||
|
get_tree().quit()
|
||||||
|
|
||||||
|
|
||||||
func _apply_debug_mode() -> void:
|
func _apply_debug_mode() -> void:
|
||||||
if config.debug_mode:
|
if config.debug_mode:
|
||||||
GlobalConfig.DEBUG = true
|
GlobalConfig.DEBUG = true
|
||||||
|
Loading…
Reference in New Issue
Block a user