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(frameAdvanceLagSkip),
|
||||||
AC(debuggerAutoload),
|
AC(debuggerAutoload),
|
||||||
AC(allowUDLR),
|
AC(allowUDLR),
|
||||||
|
AC(debuggerSaveLoadDEBFiles),
|
||||||
|
|
||||||
//window positions
|
//window positions
|
||||||
AC(ChtPosX),
|
AC(ChtPosX),
|
||||||
|
|
|
@ -66,6 +66,7 @@ static HFONT hFont;
|
||||||
static SCROLLINFO si;
|
static SCROLLINFO si;
|
||||||
|
|
||||||
bool debuggerAutoload = false;
|
bool debuggerAutoload = false;
|
||||||
|
bool debuggerSaveLoadDEBFiles = true;
|
||||||
|
|
||||||
#define INVALID_START_OFFSET 1
|
#define INVALID_START_OFFSET 1
|
||||||
#define INVALID_END_OFFSET 2
|
#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 int childwnd,numWPs; //mbg merge 7/18/06 had to make extern
|
||||||
extern bool debuggerAutoload;
|
extern bool debuggerAutoload;
|
||||||
|
extern bool debuggerSaveLoadDEBFiles;
|
||||||
|
|
||||||
void CenterWindow(HWND hwndDlg);
|
void CenterWindow(HWND hwndDlg);
|
||||||
void DoPatcher(int address,HWND hParent);
|
void DoPatcher(int address,HWND hParent);
|
||||||
|
|
|
@ -124,6 +124,12 @@ int storeHexPreferences(FILE* f)
|
||||||
**/
|
**/
|
||||||
int storePreferences(char* romname)
|
int storePreferences(char* romname)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
if (debuggerSaveLoadDEBFiles == false) {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
FILE* f;
|
FILE* f;
|
||||||
char* filename;
|
char* filename;
|
||||||
int result;
|
int result;
|
||||||
|
@ -178,6 +184,10 @@ int storePreferences(char* romname)
|
||||||
|
|
||||||
void DoDebuggerRunCheck()
|
void DoDebuggerRunCheck()
|
||||||
{
|
{
|
||||||
|
if (debuggerSaveLoadDEBFiles == false) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (wasinDebugger){
|
if (wasinDebugger){
|
||||||
DebuggerExit();
|
DebuggerExit();
|
||||||
DoDebug(0);
|
DoDebug(0);
|
||||||
|
@ -316,6 +326,10 @@ int loadHexPreferences(FILE* f)
|
||||||
**/
|
**/
|
||||||
int loadPreferences(char* romname)
|
int loadPreferences(char* romname)
|
||||||
{
|
{
|
||||||
|
if (debuggerSaveLoadDEBFiles == false) {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
FILE* f;
|
FILE* f;
|
||||||
int result;
|
int result;
|
||||||
int i;
|
int i;
|
||||||
|
|
Loading…
Reference in New Issue