Added "DockOrder" setting to gui debugger INI file.

Prepared handling of platform-specific settings (e.g. fonts, window sizes).
This commit is contained in:
Volker Ruppert 2014-09-14 19:36:13 +00:00
parent 694069bd36
commit 91937748fa
4 changed files with 29 additions and 3 deletions

View File

@ -3527,8 +3527,9 @@ void ReadSettings()
DumpWSIndex = atoi(val); DumpWSIndex = atoi(val);
DumpAlign = (1 << DumpWSIndex); DumpAlign = (1 << DumpWSIndex);
PrevDAD = 0; PrevDAD = 0;
} else { } else if (!strcmp(param, "DockOrder")) {
// TODO: add platform-specific settings DockOrder = strtoul(val, NULL, 16);
} else if (!ParseOSSettings(param, val)) {
fprintf(stderr, "bx_enh_dbg.ini: unknown option '%s'\n", line); fprintf(stderr, "bx_enh_dbg.ini: unknown option '%s'\n", line);
} }
} }
@ -3559,7 +3560,8 @@ void WriteSettings()
fprintf(fd, "isLittleEndian = %s\n", isLittleEndian ? "TRUE" : "FALSE"); fprintf(fd, "isLittleEndian = %s\n", isLittleEndian ? "TRUE" : "FALSE");
fprintf(fd, "DefaultAsmLines = %d\n", DefaultAsmLines); fprintf(fd, "DefaultAsmLines = %d\n", DefaultAsmLines);
fprintf(fd, "DumpWSIndex = %d\n", DumpWSIndex); fprintf(fd, "DumpWSIndex = %d\n", DumpWSIndex);
// TODO: add platform-specific settings fprintf(fd, "DockOrder = 0x%03x\n", DockOrder);
WriteOSSettings(fd);
fclose(fd); fclose(fd);
} }

View File

@ -67,6 +67,8 @@ int GetNextSelectedLI(int listnum, int StartPt);
bx_bool OSInit(); bx_bool OSInit();
void SpecialInit(); void SpecialInit();
void CloseDialog(); void CloseDialog();
bx_bool ParseOSSettings(const char *param, const char *value);
void WriteOSSettings(FILE *fd);
void HitBreak(); void HitBreak();
void ParseIDText(const char *x); void ParseIDText(const char *x);

View File

@ -2400,4 +2400,15 @@ void MakeBL(TreeParent *h_P, bx_param_c *p)
} }
} }
bx_bool ParseOSSettings(const char *param, const char *value)
{
// TODO: handle GTK-specific settings here
return 0;
}
void WriteOSSettings(FILE *fd)
{
// TODO: handle GTK-specific settings here
}
#endif #endif

View File

@ -1876,4 +1876,15 @@ void MakeBL(HTREEITEM *h_P, bx_param_c *p)
} }
} }
bx_bool ParseOSSettings(const char *param, const char *value)
{
// TODO: handle win32-specific settings here
return 0;
}
void WriteOSSettings(FILE *fd)
{
// TODO: handle win32-specific settings here
}
#endif #endif