mirror of
https://github.com/wiiu-env/WiiUPluginSystem.git
synced 2026-05-03 19:45:18 -05:00
Now the plugins inherit the SD/USB access from the loader. Check (args != NULL && (args->device_mounted & WUPS_SD_MOUNTED) > 0) in your INITIALZE method if you have SD access, and (args != NULL && (args->device_mounted & WUPS_USB_MOUNTED) > 0) for usb access. You can simply use open, read etc. then with "sd:/" and "usb:". No (un)mounting required. NTFS support is NOT implemented yet. So: HID to VPAD plugin can now read configurations SDCafiine now has support for libfat (other games than SSBU + FAT32 USB)
34 lines
921 B
C
34 lines
921 B
C
#ifndef COMMON_H
|
|
#define COMMON_H
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#include <dynamic_libs/os_defs.h>
|
|
|
|
#define CAFE_OS_SD_PATH "/vol/external01"
|
|
#define GAME_MOD_FOLDER "/sdcafiine"
|
|
#define SD_PATH "sd:"
|
|
#define USB_PATH "usb:"
|
|
#define DEFAULT_NAME_PACKAGE "DEFAULT"
|
|
#define NAME_PREFIX_SD "sd: "
|
|
#define NAME_PREFIX_USB "usb:"
|
|
|
|
#define ELF_DATA_ADDR (*(volatile unsigned int*)(MEM_BASE + 0x1300 + 0x00))
|
|
#define ELF_DATA_SIZE (*(volatile unsigned int*)(MEM_BASE + 0x1300 + 0x04))
|
|
#define MAIN_ENTRY_ADDR (*(volatile unsigned int*)(MEM_BASE + 0x1400 + 0x00))
|
|
|
|
#ifndef EXIT_SUCCESS
|
|
#define EXIT_SUCCESS 0
|
|
#endif
|
|
#define EXIT_HBL_EXIT 0xFFFFFFFE
|
|
#define EXIT_RELAUNCH_ON_LOAD 0xFFFFFFFD
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* COMMON_H */
|
|
|