Account for inferior OS line endings on text parsers.
This commit is contained in:
parent
0420d511a6
commit
680a68f250
2 changed files with 6 additions and 2 deletions
|
|
@ -1,3 +1,3 @@
|
|||
[default]
|
||||
SWWM_MODVER="\chSWWM \czGZ\c- \cw1.1pre r13 \cu(Wed 8 Sep 21:09:13 CEST 2021)\c-";
|
||||
SWWM_SHORTVER="\cw1.1pre r13 \cu(2021-09-08 21:09:13)\c-";
|
||||
SWWM_MODVER="\chSWWM \czGZ\c- \cw1.1pre r14 \cu(Wed 8 Sep 22:13:51 CEST 2021)\c-";
|
||||
SWWM_SHORTVER="\cw1.1pre r14 \cu(2021-09-08 22:13:51)\c-";
|
||||
|
|
|
|||
|
|
@ -46,6 +46,8 @@ Class SWWMUtility
|
|||
while ( lmp != -1 )
|
||||
{
|
||||
dat = Wads.ReadLump(lmp);
|
||||
// fucking Windows
|
||||
dat.Replace("\r","");
|
||||
list.Clear();
|
||||
dat.Split(list,"\n");
|
||||
for ( int i=0; i<list.Size(); i++ )
|
||||
|
|
@ -1518,6 +1520,8 @@ Class SWWMUtility
|
|||
let lmp = Wads.FindLump(fname);
|
||||
if ( lmp == -1 ) return false;
|
||||
String dat = Wads.ReadLump(lmp);
|
||||
// fucking Windows
|
||||
dat.Replace("\r","");
|
||||
Array<String> list;
|
||||
list.Clear();
|
||||
dat.Split(list,"\n");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue