mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-09-23 06:53:43 +00:00
Allocator refactor
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
#include "CFileStream.h"
|
||||
#include "CombinedTimestamp.h"
|
||||
#include "GPArchive.h"
|
||||
#include "GpAllocator_C.h"
|
||||
#include "MacRomanConversion.h"
|
||||
#include "MemReaderStream.h"
|
||||
#include "QDPictDecoder.h"
|
||||
@@ -15,6 +16,7 @@
|
||||
#include "ZipFile.h"
|
||||
#include "WaveFormat.h"
|
||||
#include "GpUnicode.h"
|
||||
#include "PLDrivers.h"
|
||||
|
||||
#include "zlib.h"
|
||||
|
||||
@@ -1431,6 +1433,9 @@ int ConvertSingleFile(const char *resPath, const PortabilityLayer::CombinedTimes
|
||||
|
||||
PortabilityLayer::CFileStream cfs(inF);
|
||||
|
||||
GpDriverCollection *drivers = PLDrivers::GetDriverCollection();
|
||||
drivers->SetDriver<GpDriverIDs::kAlloc>(GpAllocator_C::GetInstance());
|
||||
|
||||
PortabilityLayer::ResourceFile *resFile = PortabilityLayer::ResourceFile::Create();
|
||||
resFile->Load(&cfs);
|
||||
cfs.Close();
|
||||
|
Reference in New Issue
Block a user