RetroArch
Macros | Functions | Variables
platform_wiiu.c File Reference
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <sys/iosupport.h>
#include <net/net_compat.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <wiiu/types.h>
#include <wiiu/ac.h>
#include <file/file_path.h>
#include <lists/file_list.h>
#include <string/stdstring.h>
#include <wiiu/gx2.h>
#include <wiiu/kpad.h>
#include <wiiu/ios.h>
#include <wiiu/os.h>
#include <wiiu/procui.h>
#include <wiiu/sysapp.h>
#include "file_path_special.h"
#include "../frontend.h"
#include "../frontend_driver.h"
#include "../../defaults.h"
#include "../../paths.h"
#include "../../verbosity.h"
#include "../../retroarch.h"
#include "../../gfx/video_driver.h"
#include "hbl.h"
#include "wiiu_dbg.h"
#include "system/exception_handler.h"
#include "tasks/tasks_internal.h"
Include dependency graph for platform_wiiu.c:

Macros

#define WIIU_SD_PATH   "sd:/"
 
#define WIIU_USB_PATH   "usb:/"
 
#define PC_DEVELOPMENT_TCP_PORT   4405
 
#define DGRAM_SIZE   576
 

Functions

static void frontend_wiiu_get_environment_settings (int *argc, char *argv[], void *args, void *params_data)
 
static void frontend_wiiu_deinit (void *data)
 
static void frontend_wiiu_shutdown (bool unused)
 
static void frontend_wiiu_init (void *data)
 
static int frontend_wiiu_get_rating (void)
 
enum frontend_architecture frontend_wiiu_get_architecture (void)
 
static int frontend_wiiu_parse_drive_list (void *data, bool load_content)
 
static void frontend_wiiu_exec (const char *path, bool should_load_game)
 
static bool frontend_wiiu_set_fork (enum frontend_fork fork_mode)
 
static void frontend_wiiu_exitspawn (char *s, size_t len)
 
static void main_setup (void)
 
static void get_arguments (int *argc, char ***argv)
 
static void do_rarch_main (int argc, char **argv)
 
static void main_loop (void)
 
static void main_teardown (void)
 
static void init_network (void)
 
static void deinit_network (void)
 
static void init_logging (void)
 
static void deinit_logging (void)
 
static void wiiu_log_init (int port)
 
static void wiiu_log_deinit (void)
 
static ssize_t wiiu_log_write (struct _reent *r, void *fd, const char *ptr, size_t len)
 
static void init_pad_libraries (void)
 
static void deinit_pad_libraries (void)
 
static void SaveCallback (void)
 
static bool swap_is_pending (void *start_time)
 
int main (int argc, char **argv)
 
int getBroadcastAddress (ACIpAddress *broadcast)
 
static int broadcast_init (int port)
 
void net_print (const char *str)
 
void net_print_exp (const char *str)
 

Variables

static enum frontend_fork wiiu_fork_mode = FRONTEND_FORK_NONE
 
static const char * elf_path_cst = WIIU_SD_PATH "retroarch/retroarch.elf"
 
frontend_ctx_driver_t frontend_ctx_wiiu
 
static struct sockaddr_in broadcast
 
static int wiiu_log_socket = -1
 
static volatile int wiiu_log_lock = 0
 
static devoptab_t dotab_stdout
 

Macro Definition Documentation

◆ DGRAM_SIZE

#define DGRAM_SIZE   576

◆ PC_DEVELOPMENT_TCP_PORT

#define PC_DEVELOPMENT_TCP_PORT   4405

◆ WIIU_SD_PATH

#define WIIU_SD_PATH   "sd:/"

◆ WIIU_USB_PATH

#define WIIU_USB_PATH   "usb:/"

Function Documentation

◆ broadcast_init()

static int broadcast_init ( int  port)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ deinit_logging()

static void deinit_logging ( void  )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ deinit_network()

static void deinit_network ( void  )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ deinit_pad_libraries()

static void deinit_pad_libraries ( void  )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ do_rarch_main()

static void do_rarch_main ( int  argc,
char **  argv 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ frontend_wiiu_deinit()

static void frontend_wiiu_deinit ( void data)
static
Here is the call graph for this function:

◆ frontend_wiiu_exec()

static void frontend_wiiu_exec ( const char *  path,
bool  should_load_game 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ frontend_wiiu_exitspawn()

static void frontend_wiiu_exitspawn ( char *  s,
size_t  len 
)
static
Here is the call graph for this function:

◆ frontend_wiiu_get_architecture()

enum frontend_architecture frontend_wiiu_get_architecture ( void  )

◆ frontend_wiiu_get_environment_settings()

static void frontend_wiiu_get_environment_settings ( int *  argc,
char *  argv[],
void args,
void params_data 
)
static
Here is the call graph for this function:

◆ frontend_wiiu_get_rating()

static int frontend_wiiu_get_rating ( void  )
static

◆ frontend_wiiu_init()

static void frontend_wiiu_init ( void data)
static
Here is the call graph for this function:

◆ frontend_wiiu_parse_drive_list()

static int frontend_wiiu_parse_drive_list ( void data,
bool  load_content 
)
static
Here is the call graph for this function:

◆ frontend_wiiu_set_fork()

static bool frontend_wiiu_set_fork ( enum frontend_fork  fork_mode)
static
Here is the call graph for this function:

◆ frontend_wiiu_shutdown()

static void frontend_wiiu_shutdown ( bool  unused)
static
Here is the call graph for this function:

◆ get_arguments()

static void get_arguments ( int *  argc,
char ***  argv 
)
static
Here is the caller graph for this function:

◆ getBroadcastAddress()

int getBroadcastAddress ( ACIpAddress broadcast)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ init_logging()

static void init_logging ( void  )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ init_network()

static void init_network ( void  )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ init_pad_libraries()

static void init_pad_libraries ( void  )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ main()

int main ( int  argc,
char **  argv 
)

This file contains the main entrypoints for the Wii U executable that set up the call to main().

Here is the call graph for this function:

◆ main_loop()

static void main_loop ( void  )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ main_setup()

static void main_setup ( void  )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ main_teardown()

static void main_teardown ( void  )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ net_print()

void net_print ( const char *  str)
Here is the call graph for this function:

◆ net_print_exp()

void net_print_exp ( const char *  str)
Here is the call graph for this function:

◆ SaveCallback()

static void SaveCallback ( void  )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ swap_is_pending()

static bool swap_is_pending ( void start_time)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ wiiu_log_deinit()

static void wiiu_log_deinit ( void  )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ wiiu_log_init()

static void wiiu_log_init ( int  port)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ wiiu_log_write()

static ssize_t wiiu_log_write ( struct _reent *  r,
void fd,
const char *  ptr,
size_t  len 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ broadcast

struct sockaddr_in broadcast
static

◆ dotab_stdout

devoptab_t dotab_stdout
static
Initial value:
=
{
"stdout_net",
0,
NULL,
NULL,
NULL,
}
static ssize_t wiiu_log_write(struct _reent *r, void *fd, const char *ptr, size_t len)
Definition: platform_wiiu.c:600
#define NULL
Pointer to 0.
Definition: gctypes.h:65

◆ elf_path_cst

const char* elf_path_cst = WIIU_SD_PATH "retroarch/retroarch.elf"
static

◆ frontend_ctx_wiiu

frontend_ctx_driver_t frontend_ctx_wiiu

◆ wiiu_fork_mode

enum frontend_fork wiiu_fork_mode = FRONTEND_FORK_NONE
static

The Wii U frontend driver, along with the main() method.

◆ wiiu_log_lock

volatile int wiiu_log_lock = 0
static

◆ wiiu_log_socket

int wiiu_log_socket = -1
static