rodecomp/Source/Resource/Bitmap/BitmapResource.h
ragnarok-clanker e0b2dbbbd4 Decompile fn_09790 (UICaptchaRegisterWnd::SendMsg)
Batch #4139 by bigodeira: 0 byte-identical, 1 confirmed by peer review.

- fn_09790 UICaptchaRegisterWnd::SendMsg: logic confirmed by peer review

Peer-reviewed-by: Yommy, youko, superintelligence
Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
2026-10-30 01:43:57 +00:00

53 lines
1.2 KiB
C++

#ifndef RAGNAROK_SOURCE_RESOURCE_BITMAP_BITMAPRESOURCE_H
#define RAGNAROK_SOURCE_RESOURCE_BITMAP_BITMAPRESOURCE_H
#include "Resource/Bitmap/BitmapImage.h"
#include "Resource/Resource.h"
#include <cstddef>
class IJL15Runtime;
class ResourceBytes {
public:
virtual bool Open(const char* name) = 0;
virtual const void* Data() const = 0;
virtual int Size() const = 0;
virtual void Close() = 0;
protected:
~ResourceBytes() = default;
};
struct BitmapResourceContext {
ResourceBytes& file;
IJL15Runtime& jpeg;
CRenderSystemBase* renderSystem;
};
class CBitmapRes : public CRes {
public:
CBitmapRes();
explicit CBitmapRes(BitmapResourceContext& context);
~CBitmapRes() override;
CBitmapRes* Create() override;
bool Load(const char* name) override;
void Unload() override;
virtual bool Decode(const char* name, const void* data, int bytes, bool iconOnly);
// INLINED
BitmapResourceContext& Context() const {
return *this->m_context;
}
/* 0110 */ BitmapImage image;
protected:
BitmapResourceContext* m_context;
};
#if defined(_WIN32) && !defined(_WIN64)
static_assert(sizeof(CBitmapRes) == 296);
static_assert(offsetof(CBitmapRes, image) == 0x0110);
#endif
#endif