+ add: support (internal) development debug mode by [Settings2] (DevDebugMode=1)

This commit is contained in:
Rainer Kottenhoff 2019-03-06 12:00:59 +01:00
parent 4642ef1114
commit ca487d4909
4 changed files with 8 additions and 2 deletions

Binary file not shown.

View File

@ -1335,8 +1335,9 @@ bool EditLoadFile(
///////////////////////////////////////////////////////////////////////////////////////////////////////////////
// UCHARDET
_SetEncodingTitleInfo(origUCHARDET, iAnalyzedEncoding_UCD, confidence_UCD, iAnalyzedEncoding_CED, bIsReliable);
if (Flags.bDevDebugMode) {
_SetEncodingTitleInfo(origUCHARDET, iAnalyzedEncoding_UCD, confidence_UCD, iAnalyzedEncoding_CED, bIsReliable);
}
///////////////////////////////////////////////////////////////////////////////////////////////////////////////

View File

@ -457,6 +457,7 @@ static void _InitGlobals()
Globals.FindReplaceMatchFoundState = FND_NOP;
DefaultFlags.bDevDebugMode = false;
DefaultFlags.bStickyWindowPosition = false;
DefaultFlags.bReuseWindow = false;
DefaultFlags.bSingleFileInstance = true;
@ -6812,6 +6813,8 @@ void LoadSettings()
LoadIniSection(L"Settings2", pIniSection, cchIniSection);
// --------------------------------------------------------------------------
Defaults2.PreferredLanguageLocaleName[0] = L'\0';
IniSectionGetString(pIniSection, L"PreferredLanguageLocaleName", Defaults2.PreferredLanguageLocaleName,
Settings2.PreferredLanguageLocaleName, COUNTOF(Settings2.PreferredLanguageLocaleName));
@ -7930,6 +7933,7 @@ void LoadFlags()
{
LoadIniSection(L"Settings2", pIniSection, cchIniSection);
Flags.bDevDebugMode = IniSectionGetBool(pIniSection, L"DevDebugMode", DefaultFlags.bDevDebugMode);
Flags.bStickyWindowPosition = IniSectionGetBool(pIniSection, L"StickyWindowPosition", DefaultFlags.bStickyWindowPosition);
Flags.bReuseWindow = IniSectionGetBool(pIniSection, L"ReuseWindow", DefaultFlags.bReuseWindow);
Flags.bSingleFileInstance = IniSectionGetBool(pIniSection, L"SingleFileInstance", DefaultFlags.bSingleFileInstance);

View File

@ -420,6 +420,7 @@ extern SETTINGS_T Settings;
typedef struct _flags_t
{
bool bDevDebugMode;
bool bStickyWindowPosition;
bool bReuseWindow;
bool bSingleFileInstance;