| 1534 |
|
|
| 1535 |
GetPrivateProfileString(Section, "JoinSplitURLIgnoreEOLChar", "\\", Temp, sizeof(Temp), FName); |
GetPrivateProfileString(Section, "JoinSplitURLIgnoreEOLChar", "\\", Temp, sizeof(Temp), FName); |
| 1536 |
ts->JoinSplitURLIgnoreEOLChar = Temp[0]; |
ts->JoinSplitURLIgnoreEOLChar = Temp[0]; |
| 1537 |
|
|
| 1538 |
|
// Debug modes. |
| 1539 |
|
GetPrivateProfileString(Section, "DebugModes", "all", Temp, sizeof(Temp), FName); |
| 1540 |
|
if (_stricmp(Temp, "on") == 0 || _stricmp(Temp, "all") == 0) |
| 1541 |
|
ts->DebugModes = DBGF_ALL; |
| 1542 |
|
else if (_stricmp(Temp, "off") == 0 || _stricmp(Temp, "none") == 0) { |
| 1543 |
|
ts->DebugModes = DBGF_NONE; |
| 1544 |
|
ts->Debug = FALSE; |
| 1545 |
|
} |
| 1546 |
|
else { |
| 1547 |
|
ts->DebugModes = DBGF_NONE; |
| 1548 |
|
for (i=1; GetNthString(Temp, i, sizeof(Temp2), Temp2); i++) { |
| 1549 |
|
if (_stricmp(Temp2, "normal") == 0) |
| 1550 |
|
ts->DebugModes |= DBGF_NORM; |
| 1551 |
|
else if (_stricmp(Temp2, "hex") == 0) |
| 1552 |
|
ts->DebugModes |= DBGF_HEXD; |
| 1553 |
|
else if (_stricmp(Temp2, "noout") == 0) |
| 1554 |
|
ts->DebugModes |= DBGF_NOUT; |
| 1555 |
|
} |
| 1556 |
|
if (ts->DebugModes == DBGF_NONE) |
| 1557 |
|
ts->Debug = FALSE; |
| 1558 |
|
} |
| 1559 |
} |
} |
| 1560 |
|
|
| 1561 |
void FAR PASCAL WriteIniFile(PCHAR FName, PTTSet ts) |
void FAR PASCAL WriteIniFile(PCHAR FName, PTTSet ts) |
| 2722 |
|
|
| 2723 |
_snprintf_s(Temp, sizeof(Temp), _TRUNCATE, "%c", ts->JoinSplitURLIgnoreEOLChar); |
_snprintf_s(Temp, sizeof(Temp), _TRUNCATE, "%c", ts->JoinSplitURLIgnoreEOLChar); |
| 2724 |
WritePrivateProfileString(Section, "JoinSplitURLIgnoreEOLChar", Temp, FName); |
WritePrivateProfileString(Section, "JoinSplitURLIgnoreEOLChar", Temp, FName); |
| 2725 |
|
|
| 2726 |
|
// Debug modes. |
| 2727 |
|
if (ts->DebugModes == DBGF_ALL) { |
| 2728 |
|
strncpy_s(Temp, sizeof(Temp), "all", _TRUNCATE); |
| 2729 |
|
} |
| 2730 |
|
else { |
| 2731 |
|
if (ts->DebugModes & DBGF_NORM) { |
| 2732 |
|
strncpy_s(Temp, sizeof(Temp), "normal", _TRUNCATE); |
| 2733 |
|
} |
| 2734 |
|
else { |
| 2735 |
|
Temp[0] = 0; |
| 2736 |
|
} |
| 2737 |
|
|
| 2738 |
|
if (ts->DebugModes & DBGF_HEXD) { |
| 2739 |
|
if (Temp[0] != 0) { |
| 2740 |
|
strncat_s(Temp, sizeof(Temp), ",", _TRUNCATE); |
| 2741 |
|
} |
| 2742 |
|
strncat_s(Temp, sizeof(Temp), "hex", _TRUNCATE); |
| 2743 |
|
} |
| 2744 |
|
|
| 2745 |
|
if (ts->DebugModes & DBGF_NOUT) { |
| 2746 |
|
if (Temp[0] != 0) { |
| 2747 |
|
strncat_s(Temp, sizeof(Temp), ",", _TRUNCATE); |
| 2748 |
|
} |
| 2749 |
|
strncat_s(Temp, sizeof(Temp), "noout", _TRUNCATE); |
| 2750 |
|
} |
| 2751 |
|
|
| 2752 |
|
if (Temp[0] == 0) { |
| 2753 |
|
strncpy_s(Temp, sizeof(Temp), "none", _TRUNCATE); |
| 2754 |
|
} |
| 2755 |
|
} |
| 2756 |
|
WritePrivateProfileString(Section, "DebugModes", Temp, FName); |
| 2757 |
} |
} |
| 2758 |
|
|
| 2759 |
#define VTEditor "VT editor keypad" |
#define VTEditor "VT editor keypad" |