mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-29 22:45:36 +00:00
Workaround for utf problem in esmtool
git-svn-id: https://openmw.svn.sourceforge.net/svnroot/openmw/trunk@33 ea6a568a-9f4f-0410-981a-c910a81bb256
This commit is contained in:
parent
78229cca07
commit
4bc7d1b6d9
1 changed files with 12 additions and 3 deletions
15
esmtool.d
15
esmtool.d
|
@ -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…
Reference in a new issue