Workaround for utf problem in esmtool

git-svn-id: https://openmw.svn.sourceforge.net/svnroot/openmw/trunk@33 ea6a568a-9f4f-0410-981a-c910a81bb256
actorid
nkorslund 17 years ago
parent 78229cca07
commit 4bc7d1b6d9

@ -156,7 +156,8 @@ void main(char[][] args)
case WT.Bolt: writef("Bolt"); break;
default: assert(0);
}
writefln(" id '%s': name '%s'", n, m.name);
try writefln(" id '%s': name '%s'", n, m.name);
catch {writefln("(Invalid UTF string)");}
if(m.data.flags & Weapon.Flags.Magical)
writefln("Magical");
@ -225,14 +226,22 @@ void main(char[][] args)
writefln("Total cell placable items: ", cellRefs.length);
}
if(scptList) foreach(a, b; scripts.names) writefln(a);
if(ciList) foreach(a, b; cells.in_cells) writefln(a);
if(ciList)
foreach(a, b; cells.in_cells)
{
try writefln(a);
catch {writefln("(Invalid UTF string)");}
}
if(ceList)
foreach(uint i, c; .cells.ex_cells)
{
int x, y;
CellList.decompound(i, x, y);
if(c.name.length)
writefln("%s,%s: %s", x, y, c.name);
{
try writefln("%s,%s: %s", x, y, c.name);
catch {writefln("(Invalid UTF string)");}
}
}
if(scptShow)

Loading…
Cancel
Save