this returns 1 if the CD logger is activated when needed, or 0 if the user selected no, not to activate it
| 1136 | |
| 1137 | //this returns 1 if the CD logger is activated when needed, or 0 if the user selected no, not to activate it |
| 1138 | int 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 | |
| 1160 | void 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 |
no test coverage detected