mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2024-11-26 06:20:24 +00:00
Prevent infinite loading for effn ptcls
This commit is contained in:
parent
11099d88df
commit
ab984fe93a
1 changed files with 4 additions and 1 deletions
|
@ -46,7 +46,7 @@ namespace FirstPlugin
|
||||||
|
|
||||||
FileReader reader = new FileReader(stream);
|
FileReader reader = new FileReader(stream);
|
||||||
int SectionSize = 0;
|
int SectionSize = 0;
|
||||||
while (true)
|
while (!reader.EndOfStream)
|
||||||
{
|
{
|
||||||
string magicCheck = reader.ReadString(4, Encoding.ASCII);
|
string magicCheck = reader.ReadString(4, Encoding.ASCII);
|
||||||
if (magicCheck == "VFXB")
|
if (magicCheck == "VFXB")
|
||||||
|
@ -58,6 +58,9 @@ namespace FirstPlugin
|
||||||
SectionSize += 4;
|
SectionSize += 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (SectionSize == reader.BaseStream.Length)
|
||||||
|
return;
|
||||||
|
|
||||||
DataStart = reader.getSection(0, SectionSize);
|
DataStart = reader.getSection(0, SectionSize);
|
||||||
|
|
||||||
Text = FileName;
|
Text = FileName;
|
||||||
|
|
Loading…
Reference in a new issue