Skip to content

Commit

Permalink
Fix auto save state when state file does not already exist (libretro#…
Browse files Browse the repository at this point in the history
…16084)

Co-authored-by: Daniel Byon <[email protected]>
  • Loading branch information
2 people authored and Sunderland93 committed Dec 26, 2024
1 parent c9340ae commit 5fc1048
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/task_save.c
Original file line number Diff line number Diff line change
Expand Up @@ -1332,7 +1332,7 @@ bool content_auto_save_state(const char *path)

serial_size = core_serialize_size();

if (serial_size == 0 || !path_is_valid(path))
if (serial_size == 0)
return false;

serial_data = content_get_serialized_data(&serial_size);
Expand Down

0 comments on commit 5fc1048

Please sign in to comment.