2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 03:07:41 +00:00

IOWinManager implementation optimizations

This commit is contained in:
Jack Andersen
2015-08-25 20:38:45 -10:00
parent a9cfd21ebc
commit acb3c549f5
6 changed files with 102 additions and 68 deletions

View File

@@ -9,7 +9,7 @@ class CZipSupport
public:
static void* Alloc(void*, u32 c, u32 n)
{
return NEWA(u8, c*n);
return new u8[c*n];
}
static void Free(void*, void* buf)
{
@@ -18,7 +18,7 @@ public:
};
CZipInputStream::CZipInputStream(std::unique_ptr<CInputStream>&& strm)
: x24_compBuf(NEWA(u8, 4096)), x28_strm(std::move(strm))
: x24_compBuf(new u8[4096]), x28_strm(std::move(strm))
{
x30_zstrm.next_in = x24_compBuf.get();
x30_zstrm.avail_in = 0;