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

Function LoadCDLogFile

src/drivers/win/cdlogger.cpp:236–255  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

234}
235
236void LoadCDLogFile()
237{
238 const char filter[]="Code Data Log File (*.CDL)\0*.cdl\0\0";
239 char nameo[2048];
240 OPENFILENAME ofn;
241 memset(&ofn,0,sizeof(ofn));
242 ofn.lStructSize=sizeof(ofn);
243 ofn.hInstance=fceu_hInstance;
244 ofn.lpstrTitle="Load Code Data Log File...";
245 ofn.lpstrFilter=filter;
246 nameo[0]=0;
247 ofn.lpstrFile=nameo;
248 ofn.nMaxFile=256;
249 ofn.Flags=OFN_EXPLORER|OFN_FILEMUSTEXIST|OFN_HIDEREADONLY;
250 ofn.hwndOwner = hCDLogger;
251 if (!GetOpenFileName(&ofn))
252 return;
253 if(!LoadCDLog(nameo))
254 FCEUD_PrintError("Error Opening CDL File!");
255}
256
257void SaveCDLogFileAs()
258{

Callers 2

cdl_loadfileFunction · 0.85
CDLoggerCallBFunction · 0.85

Calls 2

LoadCDLogFunction · 0.70
FCEUD_PrintErrorFunction · 0.70

Tested by

no test coverage detected