Skip to content

Commit 2684240

Browse files
committed
Fix C89 build: correct VFS function names and add missing header
1 parent c79101a commit 2684240

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

menu/menu_vfs_browser.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
#include <boolean.h>
2222
#include <string/stdstring.h>
2323
#include <file/file_path.h>
24+
#include <vfs/vfs_implementation.h>
2425

2526
#include "menu_vfs_browser.h"
2627
#include "menu_driver.h"
@@ -316,7 +317,7 @@ bool menu_vfs_browser_operation(unsigned operation, const char *name, const char
316317

317318
case 2: /* Delete */
318319
RARCH_LOG("[VFS Browser] Delete: %s\n", full_path);
319-
if (retro_vfs_remove_impl(full_path) == 0)
320+
if (retro_vfs_file_remove_impl(full_path) == 0)
320321
{
321322
vfs_browser_read_dir(); /* Refresh */
322323
return true;
@@ -326,10 +327,10 @@ bool menu_vfs_browser_operation(unsigned operation, const char *name, const char
326327
case 3: /* Rename */
327328
if (!new_name)
328329
return false;
329-
fill_pathname_join(new_path, g_vfs_browser.current_path, new_name,
330+
fill_pathname_join(new_path, g_vfs_browser.current_path, new_name,
330331
sizeof(new_path));
331332
RARCH_LOG("[VFS Browser] Rename: %s -> %s\n", full_path, new_path);
332-
if (retro_vfs_rename_impl(full_path, new_path) == 0)
333+
if (retro_vfs_file_rename_impl(full_path, new_path) == 0)
333334
{
334335
vfs_browser_read_dir(); /* Refresh */
335336
return true;

0 commit comments

Comments
 (0)