rodecomp/Source/Archive/PakRegistry.h
ragnarok-clanker b65ca71a85 Decompile fn_18116 (PakRegistry::ApplyAuxiliary)
Batch #55 by ragnarok-clanker: 1 byte-identical, 0 confirmed by peer review.

- fn_18116 PakRegistry::ApplyAuxiliary: byte-identical

Merged automatically: every function is byte-identical to the original.
2026-10-24 11:51:55 +00:00

26 lines
692 B
C++

#ifndef RAGNAROK_SOURCE_ARCHIVE_PAKREGISTRY_H
#define RAGNAROK_SOURCE_ARCHIVE_PAKREGISTRY_H
#include "Archive/GPak.h"
#include "Archive/MemMapPakFile.h"
#include <list>
#include <utility>
class PakRegistry {
public:
~PakRegistry();
bool Add(const char* filename);
bool Exists(const char* filename, bool looseOnly) const;
void* Read(const char* filename, std::uint32_t* size, int option = 0);
__declspec(noinline) void* ReadArchive(const char* filename, std::uint32_t* size);
BOOL Free(void* buffer);
void ApplyAuxiliary(const void* data, std::uint32_t size);
private:
std::list<std::pair<CMemMapPakFile*, CGPak*>> m_archives;
};
extern PakRegistry g_pakRegistry;
#endif