mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2024-11-22 12:33:12 +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);
|
||||
int SectionSize = 0;
|
||||
while (true)
|
||||
while (!reader.EndOfStream)
|
||||
{
|
||||
string magicCheck = reader.ReadString(4, Encoding.ASCII);
|
||||
if (magicCheck == "VFXB")
|
||||
|
@ -58,6 +58,9 @@ namespace FirstPlugin
|
|||
SectionSize += 4;
|
||||
}
|
||||
|
||||
if (SectionSize == reader.BaseStream.Length)
|
||||
return;
|
||||
|
||||
DataStart = reader.getSection(0, SectionSize);
|
||||
|
||||
Text = FileName;
|
||||
|
|
Loading…
Reference in a new issue