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

Function PromptForCDLogger

src/drivers/win/tracer.cpp:1138–1158  ·  view source on GitHub ↗

this returns 1 if the CD logger is activated when needed, or 0 if the user selected no, not to activate it

Source from the content-addressed store, hash-verified

1136
1137//this returns 1 if the CD logger is activated when needed, or 0 if the user selected no, not to activate it
1138int PromptForCDLogger(void)
1139{
1140 if ((logging_options & (LOG_NEW_INSTRUCTIONS|LOG_NEW_DATA)) && (!FCEUI_GetLoggingCD()))
1141 {
1142 if (MessageBox(hTracer,"In order for some of the features you have selected to take effect,\
1143 the Code/Data Logger must also be running.\
1144 Would you like to Start the Code/Data Logger Now?","Start Code/Data Logger?",
1145 MB_YESNO) == IDYES)
1146 {
1147 if (DoCDLogger())
1148 {
1149 FCEUI_SetLoggingCD(1);
1150 SetDlgItemText(hCDLogger, BTN_CDLOGGER_START_PAUSE, "Pause");
1151 return 1;
1152 }
1153 return 0; // CDLogger couldn't start, probably because the game is closed
1154 }
1155 return 0; // user selected no so 0 is returned
1156 }
1157 return 1;
1158}
1159
1160void ShowLogDirDialog(void){
1161 const char filter[]="6502 Trace Log File (*.log)\0*.log;*.txt\0" "6502 Trace Log File (*.txt)\0*.log;*.txt\0All Files (*.*)\0*.*\0\0"; //'" "' used to prevent octal conversion on the numbers

Callers 2

TracerCallBFunction · 0.85
BeginLoggingSequenceFunction · 0.85

Calls 3

FCEUI_GetLoggingCDFunction · 0.85
DoCDLoggerFunction · 0.85
FCEUI_SetLoggingCDFunction · 0.85

Tested by

no test coverage detected