Added "DockOrder" setting to gui debugger INI file.
Prepared handling of platform-specific settings (e.g. fonts, window sizes).
This commit is contained in:
parent
694069bd36
commit
91937748fa
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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);
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user