Skip to content

Commit

Permalink
physfs_platform_ogc.c: new backend for Wii and GameCube
Browse files Browse the repository at this point in the history
Add support for the Nintendo Wii and GameCube consoles. Most of the code
has been copied from the POSIX backend, but libpthread has been replaced
with libogc's functions.

The computation of directory paths is a bit peculiar, in that the Wii
and GameCube don't have the concept of users.

The base directory is computed from the current working directory, which
is set by the libfat library. Applications not using libfat have to take
care of setting the current working directory themselves.
  • Loading branch information
mardy authored and icculus committed Feb 6, 2024
1 parent cc2da5a commit 741c4be
Show file tree
Hide file tree
Showing 4 changed files with 442 additions and 1 deletion.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ set(PHYSFS_SRCS
src/physfs_platform_posix.c
src/physfs_platform_unix.c
src/physfs_platform_windows.c
src/physfs_platform_ogc.c
src/physfs_platform_os2.c
src/physfs_platform_qnx.c
src/physfs_platform_android.c
Expand Down
2 changes: 1 addition & 1 deletion src/physfs_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
#include <malloc.h>
#endif

#if defined(PHYSFS_PLATFORM_SOLARIS) || defined(PHYSFS_PLATFORM_LINUX)
#if defined(PHYSFS_PLATFORM_SOLARIS) || defined(PHYSFS_PLATFORM_LINUX) || defined(PHYSFS_PLATFORM_OGC)
#include <alloca.h>
#endif

Expand Down
Loading

0 comments on commit 741c4be

Please sign in to comment.