mirror of
https://github.com/libretro/RetroArch
synced 2025-04-16 08:43:10 +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"XuiBtnGameDir", &m_dir_game);
|
||||||
GetChildById(L"XuiBtnCacheDir", &m_dir_cache);
|
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);
|
filebrowser_fetch_directory_entries(g_console.default_rom_startup_dir, &browser, &m_romlist, &m_rompathtitle);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
@ -99,6 +100,7 @@ HRESULT CRetroArchCoreBrowser::OnInit(XUIMessageInit * pInitData, BOOL& bHandled
|
|||||||
GetChildById(L"XuiBackButton1", &m_back);
|
GetChildById(L"XuiBackButton1", &m_back);
|
||||||
GetChildById(L"XuiTxtRomPath", &m_rompathtitle);
|
GetChildById(L"XuiTxtRomPath", &m_rompathtitle);
|
||||||
|
|
||||||
|
filebrowser_set_root(&tmp_browser, "game:");
|
||||||
filebrowser_new(&tmp_browser, "game:", "xex|XEX");
|
filebrowser_new(&tmp_browser, "game:", "xex|XEX");
|
||||||
filebrowser_fetch_directory_entries("game:", &tmp_browser, &m_romlist, &m_rompathtitle);
|
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"XuiBackButton1", &m_back);
|
||||||
GetChildById(L"XuiTxtRomPath", &m_shaderpathtitle);
|
GetChildById(L"XuiTxtRomPath", &m_shaderpathtitle);
|
||||||
|
|
||||||
|
filebrowser_set_root(&tmp_browser, "game:\\media\\shaders");
|
||||||
filebrowser_new(&tmp_browser, "game:\\media\\shaders", "cg|CG");
|
filebrowser_new(&tmp_browser, "game:\\media\\shaders", "cg|CG");
|
||||||
filebrowser_fetch_directory_entries("game:\\media\\shaders", &tmp_browser, &m_shaderlist, &m_shaderpathtitle);
|
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));
|
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)
|
void filebrowser_free(filebrowser_t * filebrowser)
|
||||||
{
|
{
|
||||||
dir_list_free(filebrowser->current_dir.elems);
|
dir_list_free(filebrowser->current_dir.elems);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user