Skip to content

yawut/libromfs-wiiu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

libromfs-wiiu

Informations

This library implements an embedded filesystem mountpoint for usage with devkitPPC aimed at the Nintendo Wii U. The implementations works by statically linking the romfs directory compressed with ustar to the executable.

Usage

Library usage

Include library's header: #include <romfs-wiiu.h> Call romfsInit() at the start of your app and romfsExit() before exiting

Makefile

To generate the romfs, define a ROMFS variable in you makefile containing the path of your romfs folder:

ROMFS := romfs_example_folder

Then, include romfs's makefile and add romfs target to your linking targets along with the ld flags (chage the example according to your makefile):

include $(PORTLIBS_PATH)/wiiu/share/romfs-wiiu.mk
CFLAGS		+=	$(ROMFS_CFLAGS)
CXXFLAGS	+=	$(ROMFS_CFLAGS)
LIBS		+=	$(ROMFS_LIBS)
OFILES		+=	$(ROMFS_TARGET)

cmake

Include romfs's cmake file:

include("${DEVKITPRO}/portlibs/wiiu/share/romfs-wiiu.cmake" REQUIRED)

Then, call romfs_add to build and link the romfs (make sure it's after all your_project add_executable calls):

romfs_add(your_project "romfs_example_folder")

Installing

A prebuild version is available at the wiiu-fling pacman repository. Please reffer to these instructions to set up wiiu-fling.

To manually install the library:

$ git clone https://github.com/yawut/libromfs-wiiu.git
$ cd libromfs-wiiu
$ make
$ sudo make install