mirror of
https://github.com/libretro/RetroArch
synced 2025-04-15 23:42:30 +00:00
(360) Updated to work with new code refactorings
This commit is contained in:
parent
8e2c3717de
commit
1e6bcb6b7f
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user