mirror of
https://github.com/libretro/RetroArch
synced 2025-01-18 13:23:40 +00:00
(Wii) Set up most of the paths on Wii
This commit is contained in:
parent
61bfa98f5e
commit
5af83668fb
@ -191,6 +191,19 @@ int rarch_main(int argc, char **argv);
|
|||||||
|
|
||||||
extern uint8_t _binary_console_font_bmp_start[];
|
extern uint8_t _binary_console_font_bmp_start[];
|
||||||
|
|
||||||
|
static void get_environment_settings(void)
|
||||||
|
{
|
||||||
|
getcwd(default_paths.port_dir, MAXPATHLEN);
|
||||||
|
snprintf(default_paths.core_dir, sizeof(default_paths.core_dir), "%scores", default_paths.port_dir);
|
||||||
|
snprintf(default_paths.config_file, sizeof(default_paths.config_file), "%sretroarch.cfg", default_paths.port_dir);
|
||||||
|
snprintf(default_paths.system_dir, sizeof(default_paths.system_dir), "%s/system", default_paths.core_dir);
|
||||||
|
snprintf(default_paths.savestate_dir, sizeof(default_paths.savestate_dir), "%s/savestates", default_paths.core_dir);
|
||||||
|
snprintf(default_paths.filesystem_root_dir, sizeof(default_paths.filesystem_root_dir), "/");
|
||||||
|
snprintf(default_paths.sram_dir, sizeof(default_paths.sram_dir), "%s/sram", default_paths.core_dir);
|
||||||
|
snprintf(default_paths.input_presets_dir, sizeof(default_paths.input_presets_dir), "%s/presets/input", default_paths.core_dir);
|
||||||
|
strlcpy(default_paths.executable_extension, ".dol", sizeof(default_paths.executable_extension));
|
||||||
|
}
|
||||||
|
|
||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
#ifdef HW_RVL
|
#ifdef HW_RVL
|
||||||
@ -199,6 +212,8 @@ int main(void)
|
|||||||
|
|
||||||
fatInitDefault();
|
fatInitDefault();
|
||||||
|
|
||||||
|
get_environment_settings();
|
||||||
|
|
||||||
#ifdef HAVE_FILE_LOGGER
|
#ifdef HAVE_FILE_LOGGER
|
||||||
g_extern.verbose = true;
|
g_extern.verbose = true;
|
||||||
log_fp = fopen("/retroarch-log.txt", "w");
|
log_fp = fopen("/retroarch-log.txt", "w");
|
||||||
@ -222,6 +237,7 @@ int main(void)
|
|||||||
rgui_iterate(rgui, RGUI_ACTION_REFRESH);
|
rgui_iterate(rgui, RGUI_ACTION_REFRESH);
|
||||||
|
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
|
|
||||||
while (get_rom_path(rgui) && ret == 0)
|
while (get_rom_path(rgui) && ret == 0)
|
||||||
{
|
{
|
||||||
bool repeat = false;
|
bool repeat = false;
|
||||||
|
0
wii/pkg/cores/presets/.empty
Normal file
0
wii/pkg/cores/presets/.empty
Normal file
0
wii/pkg/cores/presets/input/.empty
Normal file
0
wii/pkg/cores/presets/input/.empty
Normal file
0
wii/pkg/cores/savestates/.empty
Normal file
0
wii/pkg/cores/savestates/.empty
Normal file
0
wii/pkg/cores/sram/.empty
Normal file
0
wii/pkg/cores/sram/.empty
Normal file
0
wii/pkg/cores/system/.empty
Normal file
0
wii/pkg/cores/system/.empty
Normal file
Loading…
x
Reference in New Issue
Block a user