mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-09 00:11:24 +12:00
Improved PSF loader.
Improved Game Viewer. Implemented cellPadGetInfo. Minor improvements.
This commit is contained in:
parent
34f5997f82
commit
eaef09df91
10 changed files with 1024 additions and 1040 deletions
|
@ -8,7 +8,7 @@ GameViewer::GameViewer(wxWindow* parent) : wxListView(parent)
|
|||
LoadSettings();
|
||||
m_columns.Show(this);
|
||||
|
||||
m_path = wxGetCwd(); //TODO
|
||||
m_path = wxGetCwd() + "\\dev_hdd0\\game\\"; //TODO
|
||||
|
||||
Connect(GetId(), wxEVT_COMMAND_LIST_ITEM_ACTIVATED, wxListEventHandler(GameViewer::DClick));
|
||||
|
||||
|
@ -34,16 +34,13 @@ void GameViewer::LoadGames()
|
|||
if(!dir.HasSubDirs()) return;
|
||||
|
||||
wxString buf;
|
||||
if(!dir.GetFirst(&buf)) return;
|
||||
if(wxDirExists(buf)) m_games.Add(buf);
|
||||
|
||||
for(;;)
|
||||
for(bool ok = dir.GetFirst(&buf); ok; ok = dir.GetNext(&buf))
|
||||
{
|
||||
if(!dir.GetNext(&buf)) break;
|
||||
if(wxDirExists(buf)) m_games.Add(buf);
|
||||
if(wxDirExists(m_path + buf))
|
||||
m_games.Add(buf);
|
||||
}
|
||||
|
||||
//ConLog.Write("path: %s", m_path);
|
||||
//ConLog.Write("path: %s", m_path.c_str());
|
||||
//ConLog.Write("folders count: %d", m_games.GetCount());
|
||||
}
|
||||
|
||||
|
@ -52,7 +49,7 @@ void GameViewer::LoadPSF()
|
|||
m_game_data.Clear();
|
||||
for(uint i=0; i<m_games.GetCount(); ++i)
|
||||
{
|
||||
const wxString& path = m_games[i] + "\\" + "PARAM.SFO";
|
||||
const wxString& path = m_path + m_games[i] + "\\PARAM.SFO";
|
||||
if(!wxFileExists(path)) continue;
|
||||
vfsLocalFile f(path);
|
||||
PSFLoader psf(f);
|
||||
|
@ -91,7 +88,7 @@ void GameViewer::DClick(wxListEvent& event)
|
|||
long i = GetFirstSelected();
|
||||
if(i < 0) return;
|
||||
|
||||
const wxString& path = m_path + "\\" + m_game_data[i].root + "\\" + "USRDIR" + "\\" + "BOOT.BIN";
|
||||
const wxString& path = m_path + "\\" + m_game_data[i].root + "\\USRDIR\\BOOT.BIN";
|
||||
if(!wxFileExists(path))
|
||||
{
|
||||
ConLog.Error("Boot error: elf not found! [%s]", path.mb_str());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue