RetroArch
Functions | Variables
platform_ctr.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 <3ds.h>
#include <3ds/svc.h>
#include <3ds/os.h>
#include <3ds/services/cfgu.h>
#include <3ds/services/ptmu.h>
#include <3ds/services/mcuhwc.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 "ctr/ctr_debug.h"
#include "ctr/exec-3dsx/exec_3dsx.h"
#include "ctr/exec-3dsx/exec_cia.h"
Include dependency graph for platform_ctr.c:

Functions

static void get_first_valid_core (char *path_return)
 
static void frontend_ctr_get_environment_settings (int *argc, char *argv[], void *args, void *params_data)
 
static void frontend_ctr_deinit (void *data)
 
static void frontend_ctr_exec (const char *path, bool should_load_game)
 
static bool frontend_ctr_set_fork (enum frontend_fork fork_mode)
 
static void frontend_ctr_exitspawn (char *s, size_t len)
 
static void frontend_ctr_shutdown (bool unused)
 
static void ctr_check_dspfirm (void)
 
 __attribute__ ((weak))
 
static int frontend_ctr_get_rating (void)
 
enum frontend_architecture frontend_ctr_get_architecture (void)
 
static int frontend_ctr_parse_drive_list (void *data, bool load_content)
 
static uint64_t frontend_ctr_get_mem_total (void)
 
static uint64_t frontend_ctr_get_mem_used (void)
 
static enum frontend_powerstate frontend_ctr_get_powerstate (int *seconds, int *percent)
 
static void frontend_ctr_get_os (char *s, size_t len, int *major, int *minor)
 
static void frontend_ctr_get_name (char *s, size_t len)
 

Variables

static enum frontend_fork ctr_fork_mode = FRONTEND_FORK_NONE
 
static const char * elf_path_cst = "sdmc:/retroarch/retroarch.3dsx"
 
frontend_ctx_driver_t frontend_ctx_ctr
 

Function Documentation

◆ __attribute__()

__attribute__ ( (weak)  )

◆ ctr_check_dspfirm()

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

◆ frontend_ctr_deinit()

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

◆ frontend_ctr_exec()

static void frontend_ctr_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_ctr_exitspawn()

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

◆ frontend_ctr_get_architecture()

enum frontend_architecture frontend_ctr_get_architecture ( void  )

◆ frontend_ctr_get_environment_settings()

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

◆ frontend_ctr_get_mem_total()

static uint64_t frontend_ctr_get_mem_total ( void  )
static

◆ frontend_ctr_get_mem_used()

static uint64_t frontend_ctr_get_mem_used ( void  )
static

◆ frontend_ctr_get_name()

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

◆ frontend_ctr_get_os()

static void frontend_ctr_get_os ( char *  s,
size_t  len,
int *  major,
int *  minor 
)
static

◆ frontend_ctr_get_powerstate()

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

◆ frontend_ctr_get_rating()

static int frontend_ctr_get_rating ( void  )
static

◆ frontend_ctr_parse_drive_list()

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

◆ frontend_ctr_set_fork()

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

◆ frontend_ctr_shutdown()

static void frontend_ctr_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:
Here is the caller graph for this function:

Variable Documentation

◆ ctr_fork_mode

enum frontend_fork ctr_fork_mode = FRONTEND_FORK_NONE
static

◆ elf_path_cst

const char* elf_path_cst = "sdmc:/retroarch/retroarch.3dsx"
static

◆ frontend_ctx_ctr

frontend_ctx_driver_t frontend_ctx_ctr