basic wiiu rules

This commit is contained in:
Not6
2017-07-30 14:56:36 +02:00
parent 61f1908bf2
commit 1f00b1847f
7 changed files with 50 additions and 2 deletions
+5
View File
@@ -445,6 +445,11 @@ int Atari800_Initialise(int *argc, char *argv[])
#if defined(unix) || defined(__unix__) || defined(__linux__)
SYSROM_FindInDir("/usr/share/atari800", TRUE);
#endif
#if defined(WIIU) && defined(__LIBRETRO__)
SYSROM_FindInDir("sd:/retroarch/cores/system/atari800", TRUE);
#endif
if (*argc > 0 && argv[0] != NULL) {
char atari800_exe_dir[FILENAME_MAX];
char atari800_exe_rom_dir[FILENAME_MAX];
+5
View File
@@ -75,6 +75,11 @@ int CFG_save_on_exit = FALSE;
#define SYSTEM_WIDE_CFG_FILE "/etc/atari800.cfg"
#endif
#ifdef WIIU
#define DEFAULT_CFG_NAME "sd:/retroarch/cores/system/atari800.cfg"
#define SYSTEM_WIDE_CFG_FILE "sd:/retroarch/cores/system/atari800.cfg"
#endif
static char rtconfig_filename[FILENAME_MAX];
int CFG_LoadConfig(const char *alternate_config_filename)
+11
View File
@@ -935,6 +935,11 @@ static void GetDirectory(const char *directory)
#ifdef PS2
FilenamesAdd(Util_strdup("[mc0:]"));
#endif
#ifdef WIIU
// FIXME: limited to sd: add usb:
FilenamesAdd(Util_strdup("[sd:]"));
#endif
#ifdef DOS_DRIVES
/* in DOS/Windows, add all existing disk letters */
{
@@ -1150,6 +1155,12 @@ static int FileSelector(char *path, int select_dir, char pDirectories[][FILENAME
strcpy(new_dir, "mc0:/");
}
#endif
#ifdef WIIU
// FIXME for now only sd: ,please add usb:
else if (strcmp(selected_filename, "[sd:]") == 0) {
strcpy(new_dir, "sd:/");
}
#endif
#ifdef DOS_DRIVES
else if (selected_filename[2] == ':' && selected_filename[3] == ']') {
/* disk selected */
+4
View File
@@ -477,6 +477,10 @@ double Util_time(void)
void Util_sleep(double s)
{
#ifdef WIIU
/* no need to sleep on retroarch (we are awake) so bypass it for wiiu */
return;
#endif
#ifdef SUPPORTS_PLATFORM_SLEEP
PLATFORM_Sleep(s);
#else /* !SUPPORTS_PLATFORM_SLEEP */