diff --git a/360/menu.cpp b/360/menu.cpp index 717bc7e2af..fe9088eaf0 100644 --- a/360/menu.cpp +++ b/360/menu.cpp @@ -88,6 +88,7 @@ HRESULT CRetroArchFileBrowser::OnInit(XUIMessageInit * pInitData, BOOL& bHandled GetChildById(L"XuiBtnGameDir", &m_dir_game); GetChildById(L"XuiBtnCacheDir", &m_dir_cache); + filebrowser_set_root(&browser, g_console.default_rom_startup_dir); filebrowser_fetch_directory_entries(g_console.default_rom_startup_dir, &browser, &m_romlist, &m_rompathtitle); return 0; @@ -99,6 +100,7 @@ HRESULT CRetroArchCoreBrowser::OnInit(XUIMessageInit * pInitData, BOOL& bHandled GetChildById(L"XuiBackButton1", &m_back); GetChildById(L"XuiTxtRomPath", &m_rompathtitle); + filebrowser_set_root(&tmp_browser, "game:"); filebrowser_new(&tmp_browser, "game:", "xex|XEX"); filebrowser_fetch_directory_entries("game:", &tmp_browser, &m_romlist, &m_rompathtitle); @@ -111,6 +113,7 @@ HRESULT CRetroArchShaderBrowser::OnInit(XUIMessageInit * pInitData, BOOL& bHandl GetChildById(L"XuiBackButton1", &m_back); GetChildById(L"XuiTxtRomPath", &m_shaderpathtitle); + filebrowser_set_root(&tmp_browser, "game:\\media\\shaders"); filebrowser_new(&tmp_browser, "game:\\media\\shaders", "cg|CG"); filebrowser_fetch_directory_entries("game:\\media\\shaders", &tmp_browser, &m_shaderlist, &m_shaderpathtitle); diff --git a/console/fileio/file_browser.c b/console/fileio/file_browser.c index 1a7a29092a..70609ba79b 100644 --- a/console/fileio/file_browser.c +++ b/console/fileio/file_browser.c @@ -43,6 +43,10 @@ void filebrowser_set_root(filebrowser_t *filebrowser, const char *root_dir) strlcpy(filebrowser->root_dir, root_dir, sizeof(filebrowser->root_dir)); } +void filebrowser_set_current_path(filebrowser_t *filebrowser, const char *path) +{ +} + void filebrowser_free(filebrowser_t * filebrowser) { dir_list_free(filebrowser->current_dir.elems);