mirror of
https://github.com/aaru-dps/010templates.git
synced 2025-12-16 11:14:27 +00:00
Modified SuperCardPro template so it doesn't try to read empty strings.
This commit is contained in:
3
SCP.bt
3
SCP.bt
@@ -124,6 +124,9 @@ local long footerPosition = 0;
|
|||||||
|
|
||||||
wstring ReadPStringUTF8(uint pos)
|
wstring ReadPStringUTF8(uint pos)
|
||||||
{
|
{
|
||||||
|
if(pos == 0)
|
||||||
|
return "";
|
||||||
|
|
||||||
FSeek(pos);
|
FSeek(pos);
|
||||||
ushort strLen = ReadUShort();
|
ushort strLen = ReadUShort();
|
||||||
char str[] = ReadString(pos + 2, strLen);
|
char str[] = ReadString(pos + 2, strLen);
|
||||||
|
|||||||
Reference in New Issue
Block a user