mirror of
https://github.com/libretro/RetroArch
synced 2025-03-28 08:37:41 +00:00
Updates from PR feedback (ty @aliaspider)
This commit is contained in:
parent
8b87a53366
commit
9ea16c0b3d
21
wiiu/main.c
21
wiiu/main.c
@ -22,8 +22,6 @@
|
|||||||
#include <iosuhax.h>
|
#include <iosuhax.h>
|
||||||
#include <sys/iosupport.h>
|
#include <sys/iosupport.h>
|
||||||
|
|
||||||
#include "wiiu_main.h"
|
|
||||||
|
|
||||||
#include "hbl.h"
|
#include "hbl.h"
|
||||||
|
|
||||||
#include "fs/fs_utils.h"
|
#include "fs/fs_utils.h"
|
||||||
@ -188,8 +186,15 @@ static void try_shutdown_iosuhax(void)
|
|||||||
iosuhaxMount = false;
|
iosuhaxMount = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Mount the filesystem(s) needed by the application. By default, we
|
||||||
|
* mount the SD card to /sd.
|
||||||
|
*
|
||||||
|
* The 'iosuhaxMount' symbol used here is public and can be referenced
|
||||||
|
* in overriding implementations.
|
||||||
|
*/
|
||||||
__attribute__((weak))
|
__attribute__((weak))
|
||||||
void mount_filesystems(void)
|
void __mount_filesystems(void)
|
||||||
{
|
{
|
||||||
if(iosuhaxMount)
|
if(iosuhaxMount)
|
||||||
fatInitDefault();
|
fatInitDefault();
|
||||||
@ -197,8 +202,12 @@ void mount_filesystems(void)
|
|||||||
mount_sd_fat("sd");
|
mount_sd_fat("sd");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Unmount filesystems. Implementing applications should be careful to
|
||||||
|
* clean up anything mounted in __mount_filesystems() here.
|
||||||
|
*/
|
||||||
__attribute__((weak))
|
__attribute__((weak))
|
||||||
void unmount_filesystems(void)
|
void __unmount_filesystems(void)
|
||||||
{
|
{
|
||||||
if (iosuhaxMount)
|
if (iosuhaxMount)
|
||||||
{
|
{
|
||||||
@ -213,11 +222,11 @@ static void fsdev_init(void)
|
|||||||
{
|
{
|
||||||
iosuhaxMount = try_init_iosuhax();
|
iosuhaxMount = try_init_iosuhax();
|
||||||
|
|
||||||
mount_filesystems();
|
__mount_filesystems();
|
||||||
}
|
}
|
||||||
|
|
||||||
static void fsdev_exit(void)
|
static void fsdev_exit(void)
|
||||||
{
|
{
|
||||||
unmount_filesystems();
|
__unmount_filesystems();
|
||||||
try_shutdown_iosuhax();
|
try_shutdown_iosuhax();
|
||||||
}
|
}
|
||||||
|
@ -1,10 +0,0 @@
|
|||||||
#ifndef _MAIN_H
|
|
||||||
#define _MAIN_H
|
|
||||||
|
|
||||||
#include "wiiu/types.h"
|
|
||||||
|
|
||||||
void mount_filesystems(void);
|
|
||||||
void unmount_filesystems(void);
|
|
||||||
extern bool iosuhaxMount;
|
|
||||||
|
|
||||||
#endif /* _MAIN_H */
|
|
Loading…
x
Reference in New Issue
Block a user