Skip to content

android: implement previously stubbed retro_vfs_file_rename_saf - #19966

Open
omar-sobhy wants to merge 1 commit into
libretro:masterfrom
omar-sobhy:master
Open

omar-sobhy wants to merge 1 commit into
libretro:masterfrom
omar-sobhy:master

Conversation

@omar-sobhy

Copy link
Copy Markdown

Description

On Android with the current nightly build, attempting to write save states to an Android SAF path can fail. The expectation is that a temporary save state file will first be created, then it will be moved onto the existing save state file (if any exists). Currently, only the first part works -- the new file is never moved to the correct location. This is because moving the file relies on the stubbed out retro_vfs_file_rename_saf function, which currently simply returns -1.

This PR implements retro_vfs_file_rename_saf. It's just a thin wrapper doing a JNI call to VfsImplementationSaf#renameSafFile.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant