don't crash when no conf is present

This commit is contained in:
Struma 2022-07-05 21:37:18 -04:00
parent 7ecad29d77
commit f07e32e07b
2 changed files with 5 additions and 2 deletions

View file

@ -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

View file

@ -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 {