mirror of
https://github.com/libretro/RetroArch
synced 2025-01-29 00:32:49 +00:00
Remove path_get_default_shader_preset
This commit is contained in:
parent
1626439c3c
commit
ba93600b29
13
command.c
13
command.c
@ -1393,17 +1393,16 @@ static void command_event_disable_overrides(void)
|
||||
|
||||
static void command_event_restore_default_shader_preset(void)
|
||||
{
|
||||
/* auto shader preset: reload the original shader */
|
||||
|
||||
char *preset = NULL;
|
||||
|
||||
if (path_get_default_shader_preset(&preset) && !string_is_empty(preset))
|
||||
if (!path_is_empty(RARCH_PATH_DEFAULT_SHADER_PRESET))
|
||||
{
|
||||
/* auto shader preset: reload the original shader */
|
||||
settings_t *settings = config_get_ptr();
|
||||
|
||||
RARCH_LOG("Shaders: restoring default shader preset to %s\n",
|
||||
preset);
|
||||
strlcpy(settings->path.shader, preset, sizeof(settings->path.shader));
|
||||
path_get(RARCH_PATH_DEFAULT_SHADER_PRESET));
|
||||
strlcpy(settings->path.shader,
|
||||
path_get(RARCH_PATH_DEFAULT_SHADER_PRESET),
|
||||
sizeof(settings->path.shader));
|
||||
}
|
||||
|
||||
path_clear(RARCH_PATH_DEFAULT_SHADER_PRESET);
|
||||
|
8
paths.c
8
paths.c
@ -634,14 +634,6 @@ bool path_is_empty(enum rarch_path_type type)
|
||||
return false;
|
||||
}
|
||||
|
||||
bool path_get_default_shader_preset(char **preset)
|
||||
{
|
||||
if (!preset)
|
||||
return false;
|
||||
*preset = (char*)path_default_shader_preset;
|
||||
return true;
|
||||
}
|
||||
|
||||
void path_clear(enum rarch_path_type type)
|
||||
{
|
||||
switch (type)
|
||||
|
Loading…
x
Reference in New Issue
Block a user