|
|
|
@ -656,15 +656,15 @@ void load_default_config(void)
@@ -656,15 +656,15 @@ void load_default_config(void)
|
|
|
|
|
// assign default settings from default profile if set
|
|
|
|
|
void load_default_profile() |
|
|
|
|
{ |
|
|
|
|
struct profile *profile; |
|
|
|
|
|
|
|
|
|
applog(LOG_DEBUG, "default_profile.name is %s", default_profile.name); |
|
|
|
|
if (empty_string(default_profile.name)) |
|
|
|
|
{ |
|
|
|
|
applog(LOG_WARNING, "Default profile name not set."); |
|
|
|
|
applog(LOG_WARNING, "Default profile name is not set."); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
else |
|
|
|
|
{ |
|
|
|
|
|
|
|
|
|
struct profile *profile; |
|
|
|
|
|
|
|
|
|
// find profile ...
|
|
|
|
|
profile = get_profile(default_profile.name); |
|
|
|
|
if (!profile) { |
|
|
|
@ -692,7 +692,6 @@ void load_default_profile()
@@ -692,7 +692,6 @@ void load_default_profile()
|
|
|
|
|
default_profile.shaders = profile->shaders; |
|
|
|
|
default_profile.worksize = profile->worksize; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
//apply default settings
|
|
|
|
|
void apply_defaults() |
|
|
|
|