Fix storage of the use-libintercept setting

Signed-off-by: Ikey Doherty <ikey@solus-project.com>
This commit is contained in:
Ikey Doherty
2017-10-10 23:28:40 +01:00
parent fb2e84cb97
commit 8d85cb3bed
2 changed files with 4 additions and 1 deletions
+3
View File
@@ -153,6 +153,9 @@ int main(int argc, char **argv)
/* Get the config from the UI */
lconfig.use_native_runtime = gtk_switch_get_active(GTK_SWITCH(check_native));
lconfig.force_32 = gtk_switch_get_active(GTK_SWITCH(check_emul32));
#ifdef HAVE_LIBINTERCEPT
lconfig.use_libintercept = gtk_switch_get_active(GTK_SWITCH(check_intercept));
#endif
/* Cleanup */
gtk_widget_destroy(dialog);
+1 -1
View File
@@ -185,7 +185,7 @@ bool lsi_config_store(LsiConfig *config)
return false;
}
if (fprintf(fp,
"[Steam]\nuse-native-runtime = %s\nforce-32bit = %s\nuse-libintercept=%s\n",
"[Steam]\nuse-native-runtime = %s\nforce-32bit = %s\nuse-libintercept = %s\n",
lsi_bool_to_string(config->use_native_runtime),
lsi_bool_to_string(config->force_32),
lsi_bool_to_string(config->use_libintercept)) < 0) {