Added ability to disable .deb file read/write, and related debugger window reload, by adding "debuggerSaveLoadDEBFiles 0" to the config file. Basically turns off all the debugger file stuff I worked on for those who dislike the feature.
This commit is contained in:
parent
2393cfca49
commit
bd7bc4effd
|
@ -228,6 +228,7 @@ static CFGSTRUCT fceuconfig[] = {
|
|||
AC(frameAdvanceLagSkip),
|
||||
AC(debuggerAutoload),
|
||||
AC(allowUDLR),
|
||||
AC(debuggerSaveLoadDEBFiles),
|
||||
|
||||
//window positions
|
||||
AC(ChtPosX),
|
||||
|
|
|
@ -66,6 +66,7 @@ static HFONT hFont;
|
|||
static SCROLLINFO si;
|
||||
|
||||
bool debuggerAutoload = false;
|
||||
bool debuggerSaveLoadDEBFiles = true;
|
||||
|
||||
#define INVALID_START_OFFSET 1
|
||||
#define INVALID_END_OFFSET 2
|
||||
|
|
|
@ -19,6 +19,7 @@ extern HWND hDebug;
|
|||
|
||||
extern int childwnd,numWPs; //mbg merge 7/18/06 had to make extern
|
||||
extern bool debuggerAutoload;
|
||||
extern bool debuggerSaveLoadDEBFiles;
|
||||
|
||||
void CenterWindow(HWND hwndDlg);
|
||||
void DoPatcher(int address,HWND hParent);
|
||||
|
|
|
@ -124,6 +124,12 @@ int storeHexPreferences(FILE* f)
|
|||
**/
|
||||
int storePreferences(char* romname)
|
||||
{
|
||||
|
||||
if (debuggerSaveLoadDEBFiles == false) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
FILE* f;
|
||||
char* filename;
|
||||
int result;
|
||||
|
@ -178,6 +184,10 @@ int storePreferences(char* romname)
|
|||
|
||||
void DoDebuggerRunCheck()
|
||||
{
|
||||
if (debuggerSaveLoadDEBFiles == false) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (wasinDebugger){
|
||||
DebuggerExit();
|
||||
DoDebug(0);
|
||||
|
@ -316,6 +326,10 @@ int loadHexPreferences(FILE* f)
|
|||
**/
|
||||
int loadPreferences(char* romname)
|
||||
{
|
||||
if (debuggerSaveLoadDEBFiles == false) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
FILE* f;
|
||||
int result;
|
||||
int i;
|
||||
|
|
Loading…
Reference in New Issue