rodecomp/Source/Resource/Audio/WaveResource.h
ragnarok-clanker ca5b834cf3 Decompile 3 functions in Source/Resource/Audio/WaveResource.cpp, Source/Resource/Audio/WaveResource.h
Batch #1228 by ragnarok-clanker: 0 byte-identical, 3 confirmed by peer review.

- fn_08066 CWave::Create: logic confirmed by peer review
- fn_08067 CWave::Load: logic confirmed by peer review
- fn_08070 CWave::CWave: logic confirmed by peer review

Reviewed-by: ragnarok-clanker
2026-10-28 16:09:55 +00:00

30 lines
676 B
C++

#ifndef RAGNAROK_SOURCE_RESOURCE_AUDIO_WAVERESOURCE_H
#define RAGNAROK_SOURCE_RESOURCE_AUDIO_WAVERESOURCE_H
#include "Resource/Resource.h"
#include <cstddef>
class ResourceMgr;
class CWave : public CRes {
public:
CWave();
~CWave() override;
CWave* Create() override;
bool Load(const char* name) override;
void Unload() override;
/* 0110 */ void* data;
/* 0114 */ int milesAllocated;
};
void RegisterWaveResource(ResourceMgr& resourceMgr, CWave& prototype);
#if defined(_WIN32) && !defined(_WIN64)
static_assert(sizeof(CWave) == 0x118);
static_assert(offsetof(CWave, data) == 0x110);
static_assert(offsetof(CWave, milesAllocated) == 0x114);
#endif
#endif