fixed wring pkg files twice

This commit is contained in:
georgemoralis 2023-02-28 18:11:14 +02:00
parent bef8a63996
commit 2ef7f6fdc3

View file

@ -87,12 +87,14 @@ bool PKG::extract(const std::string& filepath, const std::string& extractPath, s
out.Close(); out.Close();
} }
//found an name use it else
{
FsFile out; FsFile out;
out.Open(extractPath + name, fsWrite); out.Open(extractPath + name, fsWrite);
out.Write(pkg + entry.offset, entry.size); out.Write(pkg + entry.offset, entry.size);
out.Close(); out.Close();
} }
}
else else
{ {
//just print with id //just print with id