RetroArch
Macros | Functions | Variables
platform_switch.c File Reference
#include <stdint.h>
#include <stddef.h>
#include <string.h>
#include <ctype.h>
#include <boolean.h>
#include <sys/stat.h>
#include <errno.h>
#include <dirent.h>
#include <file/nbio.h>
#include <formats/rpng.h>
#include <formats/image.h>
#include <libtransistor/nx.h>
#include <libtransistor/ipc_helpers.h>
#include <file/file_path.h>
#include <lists/file_list.h>
#include "../frontend_driver.h"
#include "../../verbosity.h"
#include "../../defaults.h"
#include "../../paths.h"
#include "../../retroarch.h"
#include "../../file_path_special.h"
#include "../../audio/audio_driver.h"
#include <string/stdstring.h>
Include dependency graph for platform_switch.c:

Macros

#define SD_PREFIX   "/sd"
 

Functions

static uint64_t frontend_switch_get_mem_used (void)
 
static void get_first_valid_core (char *path_return)
 
static void frontend_switch_get_environment_settings (int *argc, char *argv[], void *args, void *params_data)
 
static void frontend_switch_deinit (void *data)
 
static void frontend_switch_shutdown (bool unused)
 
void retro_get_system_info (struct retro_system_info *info)
 
static void frontend_switch_init (void *data)
 
static int frontend_switch_get_rating (void)
 
enum frontend_architecture frontend_switch_get_architecture (void)
 
static int frontend_switch_parse_drive_list (void *data, bool load_content)
 
static uint64_t frontend_switch_get_mem_total (void)
 
static enum frontend_powerstate frontend_switch_get_powerstate (int *seconds, int *percent)
 
static void frontend_switch_get_os (char *s, size_t len, int *major, int *minor)
 
static void frontend_switch_get_name (char *s, size_t len)
 

Variables

static enum frontend_fork switch_fork_mode = FRONTEND_FORK_NONE
 
static const char * elf_path_cst = "/switch/retroarch_switch.nro"
 
bool platform_switch_has_focus = true
 
switch_ctx_data_tnx_ctx_ptr
 
frontend_ctx_driver_t frontend_ctx_switch
 

Macro Definition Documentation

◆ SD_PREFIX

#define SD_PREFIX   "/sd"

Function Documentation

◆ frontend_switch_deinit()

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

◆ frontend_switch_get_architecture()

enum frontend_architecture frontend_switch_get_architecture ( void  )

◆ frontend_switch_get_environment_settings()

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

◆ frontend_switch_get_mem_total()

static uint64_t frontend_switch_get_mem_total ( void  )
static
Here is the call graph for this function:

◆ frontend_switch_get_mem_used()

static uint64_t frontend_switch_get_mem_used ( void  )
static
Here is the caller graph for this function:

◆ frontend_switch_get_name()

static void frontend_switch_get_name ( char *  s,
size_t  len 
)
static

◆ frontend_switch_get_os()

static void frontend_switch_get_os ( char *  s,
size_t  len,
int *  major,
int *  minor 
)
static
Here is the call graph for this function:

◆ frontend_switch_get_powerstate()

static enum frontend_powerstate frontend_switch_get_powerstate ( int *  seconds,
int *  percent 
)
static

◆ frontend_switch_get_rating()

static int frontend_switch_get_rating ( void  )
static

◆ frontend_switch_init()

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

◆ frontend_switch_parse_drive_list()

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

◆ frontend_switch_shutdown()

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

◆ get_first_valid_core()

static void get_first_valid_core ( char *  path_return)
static
Here is the call graph for this function:

◆ retro_get_system_info()

void retro_get_system_info ( struct retro_system_info info)
Here is the caller graph for this function:

Variable Documentation

◆ elf_path_cst

const char* elf_path_cst = "/switch/retroarch_switch.nro"
static

◆ frontend_ctx_switch

frontend_ctx_driver_t frontend_ctx_switch

◆ nx_ctx_ptr

switch_ctx_data_t* nx_ctx_ptr

◆ platform_switch_has_focus

bool platform_switch_has_focus = true

◆ switch_fork_mode

enum frontend_fork switch_fork_mode = FRONTEND_FORK_NONE
static