Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
filesystem/switch: cosmetics
  • Loading branch information
vs49688 committed May 17, 2025
commit 647675aed655905a66d26fb6756ecd3c623cd983
12 changes: 5 additions & 7 deletions src/filesystem/switch/SDL_sysfilesystem.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,32 +25,30 @@
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* System dependent filesystem routines */

#include <limits.h>
#include <fcntl.h>
#include <limits.h>
#include <sys/unistd.h>

#include "SDL_error.h"
#include "SDL_stdinc.h"
#include "SDL_filesystem.h"
#include "SDL_stdinc.h"

char *
SDL_GetBasePath(void)
char *SDL_GetBasePath(void)
{
const char *basepath = "romfs:/";
char *retval = SDL_strdup(basepath);
return retval;
}

char *
SDL_GetPrefPath(const char *org, const char *app)
char *SDL_GetPrefPath(const char *org, const char *app)
{
char *ret = NULL;
char buf[PATH_MAX];
size_t len;

if (getcwd(buf, PATH_MAX)) {
len = strlen(buf) + 2;
ret = (char *) SDL_malloc(len);
ret = (char *)SDL_malloc(len);
if (!ret) {
SDL_OutOfMemory();
return NULL;
Expand Down