[Project64] Rename RefreshRomBrowser to RefreshRomList

This commit is contained in:
zilmar 2016-04-15 08:07:34 +10:00
parent 898df5f920
commit 5b5d30cb69
5 changed files with 13 additions and 13 deletions

View File

@ -245,7 +245,7 @@ void RomBowserColoumnsChanged(CMainGui * Gui)
void RomBrowserRecursiveChanged(CMainGui * Gui) void RomBrowserRecursiveChanged(CMainGui * Gui)
{ {
Gui->RefreshRomBrowser(); Gui->RefreshRomList();
Gui->HighLightLastRom(); Gui->HighLightLastRom();
} }
@ -1041,7 +1041,7 @@ LRESULT CALLBACK CMainGui::MainGui_Proc(HWND hWnd, DWORD uMsg, DWORD wParam, DWO
} }
break; break;
case ID_POPUPMENU_ROMDIRECTORY: _this->SelectRomDir(); break; case ID_POPUPMENU_ROMDIRECTORY: _this->SelectRomDir(); break;
case ID_POPUPMENU_REFRESHROMLIST: _this->RefreshRomBrowser(); break; case ID_POPUPMENU_REFRESHROMLIST: _this->RefreshRomList(); break;
case ID_POPUPMENU_ROMINFORMATION: case ID_POPUPMENU_ROMINFORMATION:
{ {
RomInformation Info(_this->CurrentedSelectedRom()); RomInformation Info(_this->CurrentedSelectedRom());

View File

@ -200,7 +200,7 @@ bool CMainMenu::ProcessMessage(HWND hWnd, DWORD /*FromAccelerator*/, DWORD MenuI
m_Gui->RefreshMenu(); m_Gui->RefreshMenu();
WriteTrace(TraceUserInterface, TraceDebug, "ID_FILE_ROMDIRECTORY 3"); WriteTrace(TraceUserInterface, TraceDebug, "ID_FILE_ROMDIRECTORY 3");
break; break;
case ID_FILE_REFRESHROMLIST: m_Gui->RefreshRomBrowser(); break; case ID_FILE_REFRESHROMLIST: m_Gui->RefreshRomList(); break;
case ID_FILE_EXIT: DestroyWindow((HWND)hWnd); break; case ID_FILE_EXIT: DestroyWindow((HWND)hWnd); break;
case ID_SYSTEM_RESET_SOFT: case ID_SYSTEM_RESET_SOFT:
WriteTrace(TraceUserInterface, TraceDebug, "ID_SYSTEM_RESET_SOFT"); WriteTrace(TraceUserInterface, TraceDebug, "ID_SYSTEM_RESET_SOFT");
@ -542,7 +542,7 @@ bool CMainMenu::ProcessMessage(HWND hWnd, DWORD /*FromAccelerator*/, DWORD MenuI
m_Gui->RefreshMenu(); m_Gui->RefreshMenu();
if (m_Gui->RomBrowserVisible()) if (m_Gui->RomBrowserVisible())
{ {
m_Gui->RefreshRomBrowser(); m_Gui->RefreshRomList();
} }
} }
} }

View File

@ -985,7 +985,7 @@ void CRomBrowser::SelectRomDir(void)
WriteTrace(TraceUserInterface, TraceDebug, "7"); WriteTrace(TraceUserInterface, TraceDebug, "7");
Notify().AddRecentDir(Directory); Notify().AddRecentDir(Directory);
WriteTrace(TraceUserInterface, TraceDebug, "8"); WriteTrace(TraceUserInterface, TraceDebug, "8");
RefreshRomBrowser(); RefreshRomList();
WriteTrace(TraceUserInterface, TraceDebug, "9"); WriteTrace(TraceUserInterface, TraceDebug, "9");
} }
} }

View File

@ -72,7 +72,7 @@ CRomList::~CRomList()
} }
} }
void CRomList::RefreshRomBrowser(void) void CRomList::RefreshRomList(void)
{ {
DWORD ThreadID; DWORD ThreadID;
@ -82,7 +82,7 @@ void CRomList::RefreshRomBrowser(void)
} }
WriteTrace(TraceUserInterface, TraceDebug, "1"); WriteTrace(TraceUserInterface, TraceDebug, "1");
m_StopRefresh = false; m_StopRefresh = false;
m_RefreshThread = CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)RefreshRomBrowserStatic, (LPVOID)this, 0, &ThreadID); m_RefreshThread = CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)RefreshRomListStatic, (LPVOID)this, 0, &ThreadID);
WriteTrace(TraceUserInterface, TraceDebug, "2"); WriteTrace(TraceUserInterface, TraceDebug, "2");
} }
@ -348,7 +348,7 @@ void CRomList::NotificationCB(const char * Status, CRomList * /*_this*/)
g_Notify->DisplayMessage(5, Status); g_Notify->DisplayMessage(5, Status);
} }
void CRomList::RefreshRomBrowserStatic(CRomList * _this) void CRomList::RefreshRomListStatic(CRomList * _this)
{ {
_this->RefreshRomListThread(); _this->RefreshRomListThread();
} }
@ -586,14 +586,14 @@ void CRomList::LoadRomList(void)
if (!file.IsOpen()) if (!file.IsOpen())
{ {
//if file does not exist then refresh the data //if file does not exist then refresh the data
RefreshRomBrowser(); RefreshRomList();
return; return;
} }
unsigned char md5[16]; unsigned char md5[16];
if (!file.Read(md5, sizeof(md5))) if (!file.Read(md5, sizeof(md5)))
{ {
file.Close(); file.Close();
RefreshRomBrowser(); RefreshRomList();
return; return;
} }
@ -602,7 +602,7 @@ void CRomList::LoadRomList(void)
if (!file.Read(&RomInfoSize, sizeof(RomInfoSize)) || RomInfoSize != sizeof(ROM_INFO)) if (!file.Read(&RomInfoSize, sizeof(RomInfoSize)) || RomInfoSize != sizeof(ROM_INFO))
{ {
file.Close(); file.Close();
RefreshRomBrowser(); RefreshRomList();
return; return;
} }

View File

@ -52,7 +52,7 @@ public:
CRomList(); CRomList();
virtual ~CRomList(); virtual ~CRomList();
void RefreshRomBrowser(void); void RefreshRomList(void);
void LoadRomList(void); void LoadRomList(void);
protected: protected:
@ -87,7 +87,7 @@ private:
static void NotificationCB(const char * Status, CRomList * _this); static void NotificationCB(const char * Status, CRomList * _this);
static void WatchRomDirChanged(CRomList * _this); static void WatchRomDirChanged(CRomList * _this);
static void RefreshRomBrowserStatic(CRomList * _this); static void RefreshRomListStatic(CRomList * _this);
static void ByteSwapRomData(uint8_t * Data, int DataLen); static void ByteSwapRomData(uint8_t * Data, int DataLen);
static int32_t GetCicChipID(uint8_t * RomData); static int32_t GetCicChipID(uint8_t * RomData);