mirror of
https://github.com/libretro/RetroArch.git
synced 2025-04-02 10:51:52 -04:00
(task_screenshot.c) Nits
This commit is contained in:
parent
f6c861cf1a
commit
80519955ca
1 changed files with 6 additions and 5 deletions
|
@ -325,13 +325,14 @@ static bool take_screenshot_choice(const char *name_base, bool savestate)
|
|||
{
|
||||
size_t old_pitch;
|
||||
unsigned old_width, old_height;
|
||||
bool ret = false;
|
||||
void *frame_data = NULL;
|
||||
const void* old_data = NULL;
|
||||
settings_t *settings = config_get_ptr();
|
||||
bool ret = false;
|
||||
void *frame_data = NULL;
|
||||
const void* old_data = NULL;
|
||||
settings_t *settings = config_get_ptr();
|
||||
const char *screenshot_dir = settings->directory.screenshot;
|
||||
|
||||
/* No way to infer screenshot directory. */
|
||||
if ( string_is_empty(settings->directory.screenshot)
|
||||
if ( string_is_empty(screenshot_dir)
|
||||
&& string_is_empty(name_base))
|
||||
return false;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue