mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-24 19:56:06 +00:00
Fix savestate thumbnail path when screenshot dir is set
This commit is contained in:
parent
779b680264
commit
b8db914af4
@ -191,13 +191,20 @@ static bool screenshot_dump(
|
||||
state->frame = frame;
|
||||
state->userbuf = userbuf;
|
||||
|
||||
if (settings->auto_screenshot_filename && !savestate)
|
||||
fill_str_dated_filename(state->shotname, path_basename(name_base),
|
||||
IMG_EXT, sizeof(state->shotname));
|
||||
if (savestate)
|
||||
{
|
||||
snprintf(state->filename, sizeof(state->filename), "%s.png", name_base);
|
||||
}
|
||||
else
|
||||
snprintf(state->shotname, sizeof(state->shotname), "%s.png", path_basename(name_base));
|
||||
{
|
||||
if (settings->auto_screenshot_filename)
|
||||
fill_str_dated_filename(state->shotname, path_basename(name_base),
|
||||
IMG_EXT, sizeof(state->shotname));
|
||||
else
|
||||
snprintf(state->shotname, sizeof(state->shotname), "%s.png", path_basename(name_base));
|
||||
|
||||
fill_pathname_join(state->filename, folder, state->shotname, sizeof(state->filename));
|
||||
fill_pathname_join(state->filename, folder, state->shotname, sizeof(state->filename));
|
||||
}
|
||||
|
||||
#ifdef _XBOX1
|
||||
d3d->dev->GetBackBuffer(-1, D3DBACKBUFFER_TYPE_MONO, &state->surf);
|
||||
|
Loading…
Reference in New Issue
Block a user