Fixed fidoconfig parsing.
This commit is contained in:
@@ -10,6 +10,8 @@ _____________________________________________________________________________
|
||||
<20><><EFBFBD><EFBFBD>⪨ <20><><EFBFBD> GoldED+ 1.1.5, /snapshot/
|
||||
_____________________________________________________________________________
|
||||
|
||||
+ <20><><EFBFBD><EFBFBD><EFBFBD>প<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ठ 'set' <20> fidoconfig-<2D>.
|
||||
- Golded+ <20><><EFBFBD> 㯠<><E3AFA0><EFBFBD> <20><> <20>६<EFBFBD> <20><><EFBFBD>ᨭ<EFBFBD><E1A8AD> fidoconfig-<2D>.
|
||||
- <20><><EFBFBD>ࠢ<EFBFBD><E0A0A2><EFBFBD> <20><><EFBFBD> <20> <20>⥪<EFBFBD> <20>⪠<EFBFBD><E2AAA0> ।<><E0A5A4><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><EFBFBD><E0AEA1><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>
|
||||
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 祬 ࠧ<><E0A0A7><EFBFBD> <20><>ப<EFBFBD>.
|
||||
+ <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ReadForceDeleteMsg (<28><> 㬮<>砭<EFBFBD><E7A0AD> #Del) <20> goldkeys.cfg <20><><EFBFBD> 㤠<><E3A4A0><EFBFBD><EFBFBD><EFBFBD>
|
||||
|
@@ -10,6 +10,10 @@ ______________________________________________________________________
|
||||
Notes for GoldED+ 1.1.5, /snapshot/
|
||||
______________________________________________________________________
|
||||
|
||||
+ Support for keyword 'set' in fidoconfig.
|
||||
|
||||
- Golded+ can crash when parsing fidoconfig.
|
||||
|
||||
- Fixed string subscript out of range in editors undo stack.
|
||||
|
||||
+ Added ReadForceDeleteMsg (default is #Del) to the goldkeys.cfg used to
|
||||
|
@@ -73,6 +73,7 @@ bool gareafile::ReadHPTLine(gfile &f, std::string* s, bool add, int state)
|
||||
if(state != 1) {
|
||||
str.erase(ptr, str.end());
|
||||
state = 2;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
else {
|
||||
@@ -175,6 +176,7 @@ void gareafile::ReadHPTFile(char* path, char* file, char* origin, int group) {
|
||||
const word CRC_VERSION = 0xF78F;
|
||||
const word CRC_COMMENTCHAR = 0xE2CC;
|
||||
const word CRC_ECHOAREADEFAULTS = 0x2CBB;
|
||||
const word CRC_SET = 0x2FC2;
|
||||
|
||||
AreaCfg aa;
|
||||
Path buf2;
|
||||
@@ -203,12 +205,19 @@ void gareafile::ReadHPTFile(char* path, char* file, char* origin, int group) {
|
||||
char* key;
|
||||
char* val = ptr;
|
||||
gettok(&key, &val);
|
||||
switch(strCrc16(key)) {
|
||||
case CRC_VERSION:
|
||||
switch (strCrc16(key))
|
||||
{
|
||||
case CRC_SET:
|
||||
if (strchg(val, '[', '%') != 0)
|
||||
strchg(val, ']', '%');
|
||||
putenv(val);
|
||||
break;
|
||||
|
||||
case CRC_VERSION:
|
||||
{
|
||||
int ver_maj, ver_min;
|
||||
sscanf(val, "%d.%d", &ver_maj, &ver_min);
|
||||
if ((ver_maj != 0) and (ver_min >= 0) and (ver_min < 15))
|
||||
if (((ver_maj << 16) + ver_min) > 0x00010009)
|
||||
{
|
||||
STD_PRINTNL("* Error: Unknown fidoconfig version " << ver_maj << '.' << ver_min << " - Skipping.");
|
||||
throw_xfree(alptr);
|
||||
|
Reference in New Issue
Block a user