mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-16 07:50:28 +02:00
Open directory as disc image
This commit is contained in:
1 parent
c9279a951b
commit
8955fedf44
14 files changed
+214
-15
No files matched your search
@@ -303,7 +303,7 @@ namespace MainWindow
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
void BrowseAndBoot(std::string defaultPath)
|
||||
void BrowseAndBoot(std::string defaultPath, bool browseDirectory)
|
||||
{
|
||||
std::string fn;
|
||||
std::string filter = "PSP ROMs (*.iso *.cso *.pbp *.elf)|*.pbp;*.elf;*.iso;*.cso;*.prx|All files (*.*)|*.*||";
|
||||
@@ -323,7 +323,24 @@ namespace MainWindow
|
||||
Core_EnableStepping(true);
|
||||
}
|
||||
|
||||
if (W32Util::BrowseForFileName(true, GetHWND(), "Load File", defaultPath.size() ? defaultPath.c_str() : 0, filter.c_str(),"*.pbp;*.elf;*.iso;*.cso;",fn))
|
||||
if (browseDirectory)
|
||||
{
|
||||
std::string dir = W32Util::BrowseForFolder(GetHWND(),"Choose directory");
|
||||
if (dir == "" && !isPaused)
|
||||
{
|
||||
Core_EnableStepping(false);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (globalUIState == UISTATE_INGAME || globalUIState == UISTATE_PAUSEMENU)
|
||||
{
|
||||
Core_EnableStepping(false);
|
||||
}
|
||||
|
||||
NativeMessageReceived("boot", dir.c_str());
|
||||
}
|
||||
}
|
||||
else if (W32Util::BrowseForFileName(true, GetHWND(), "Load File", defaultPath.size() ? defaultPath.c_str() : 0, filter.c_str(),"*.pbp;*.elf;*.iso;*.cso;",fn))
|
||||
{
|
||||
if (globalUIState == UISTATE_INGAME || globalUIState == UISTATE_PAUSEMENU)
|
||||
{
|
||||
@@ -572,6 +589,10 @@ namespace MainWindow
|
||||
BrowseAndBoot("");
|
||||
break;
|
||||
|
||||
case ID_FILE_LOAD_DIR:
|
||||
BrowseAndBoot("",true);
|
||||
break;
|
||||
|
||||
case ID_FILE_LOAD_MEMSTICK:
|
||||
{
|
||||
std::string memStickDir, flash0dir;
|
||||
|
||||
Reference in new issue
Block a user