MCPcopy Create free account
hub / github.com/TASEmulators/fceux / LoadRecentRom

Function LoadRecentRom

src/drivers/win/window.cpp:768–783  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

766}
767
768void LoadRecentRom(int slot)
769{
770 char*& fname = recent_files[slot];
771 if(fname)
772 {
773 if (!ALoad(fname))
774 {
775 int result = MessageBox(hAppWnd, "Remove from list?", "Could Not Open Recent File", MB_YESNO);
776 if (result == IDYES)
777 {
778 RemoveRecentItem(slot, recent_files, MAX_NUMBER_OF_RECENT_FILES);
779 UpdateRMenu(recentmenu, recent_files, MENU_RECENT_FILES, MENU_FIRST_RECENT_FILE);
780 }
781 }
782 }
783}
784
785void UpdateLuaRMenu(HMENU menu, char **strs, unsigned int mitem, unsigned int baseid)
786{

Callers 3

ReloadRomFunction · 0.85
emu_loadromFunction · 0.85
AppWndProcFunction · 0.85

Calls 3

ALoadFunction · 0.85
RemoveRecentItemFunction · 0.85
UpdateRMenuFunction · 0.85

Tested by

no test coverage detected