mirror of
https://github.com/mkxp-z/mkxp-z.git
synced 2025-09-10 12:02:53 +02:00
don't crash when no conf is present
This commit is contained in:
parent
7ecad29d77
commit
f07e32e07b
2 changed files with 5 additions and 2 deletions
|
@ -165,6 +165,9 @@ if steamworks == true
|
|||
|
||||
if get_option('steamshim_debug') == true
|
||||
shim_args += '-DSTEAMSHIM_DEBUG'
|
||||
shim_ws = 'console'
|
||||
else
|
||||
shim_ws = 'windows'
|
||||
endif
|
||||
|
||||
executable(meson.project_name(),
|
||||
|
@ -172,7 +175,7 @@ if steamworks == true
|
|||
dependencies: steamlib,
|
||||
cpp_args: shim_args,
|
||||
link_args: la.split(),
|
||||
gui_app: (get_option('steamshim_debug') == false),
|
||||
win_subsystem: shim_ws,
|
||||
install: (host_system != 'windows'))
|
||||
endif
|
||||
|
||||
|
|
|
@ -101,7 +101,7 @@ json::value readConfFile(const char *path) {
|
|||
|
||||
json::value ret(0);
|
||||
if (!mkxp_fs::fileExists(path)) {
|
||||
return ret;
|
||||
return json::object({});
|
||||
}
|
||||
|
||||
try {
|
||||
|
|
Loading…
Add table
Reference in a new issue