(Xbox 1) Fixes crashes when attempting to go to 'Libretro/paths'

dir selection screens - had to do with wrong path setting
This commit is contained in:
twinaphex 2012-08-05 04:30:02 +02:00
parent 8cfeeeb2b6
commit fe62cf91a9
2 changed files with 3 additions and 2 deletions

View File

@ -720,6 +720,7 @@ static void browser_render(filebrowser_t * b, float current_x, float current_y,
{
DEVICE_CAST device_ptr = (DEVICE_CAST)driver.video_data;
RARCH_LOG("pointer b: %p\n", b);
unsigned file_count = b->current_dir.list->size;
unsigned int current_index, page_number, page_base, i;
float currentX, currentY, ySpacing;

View File

@ -106,10 +106,10 @@ static void get_environment_settings (void)
#if defined(_XBOX1)
/* FIXME: Hardcoded */
strlcpy(default_paths.core_dir, "D:\\", sizeof(default_paths.core_dir));
strlcpy(default_paths.core_dir, "D:", sizeof(default_paths.core_dir));
strlcpy(default_paths.config_file, "D:\\retroarch.cfg", sizeof(default_paths.config_file));
strlcpy(default_paths.system_dir, "D:\\system\\", sizeof(default_paths.system_dir));
strlcpy(default_paths.filesystem_root_dir, "D:\\", sizeof(default_paths.filesystem_root_dir));
strlcpy(default_paths.filesystem_root_dir, "D:", sizeof(default_paths.filesystem_root_dir));
strlcpy(default_paths.executable_extension, ".xbe", sizeof(default_paths.executable_extension));
strlcpy(default_paths.filebrowser_startup_dir, "D:", sizeof(default_paths.filebrowser_startup_dir));
#elif defined(_XBOX360)