Decompile 3 functions in Source/Resource/EmblemResource.cpp, Source/Resource/EmblemResource.h, ...

Batch #1826 by Yommy: 3 byte-identical, 0 confirmed by peer review.

- fn_07882 CEmblemRes::Unload: byte-identical
- fn_07883 CEmblemRes::Slot02: byte-identical
- fn_07884 CEmblemRes::IsTransient: byte-identical

Merged automatically: every function is byte-identical to the original.
Adds to the build: Source/Resource/EmblemResource.cpp
This commit is contained in:
ragnarok-clanker 2026-10-28 22:42:32 +00:00
commit 903f26c3f2
4 changed files with 74 additions and 0 deletions

View file

@ -33,6 +33,10 @@ public:
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;

View file

@ -0,0 +1,48 @@
#include "Resource/EmblemResource.h"
#include "Contents/Emblems/EmblemCache.h"
#include "Contents/GuildMgr.h"
#include "File/File.h"
#include <cstdint>
#include <cstdlib>
#include <string>
#include <zlib.h>
namespace {
// INLINED
EmblemCache& GuildEmblemCache() {
return *reinterpret_cast<EmblemCache*>(g_guildMgr);
}
}
// INLINED
CEmblemRes::CEmblemRes(BitmapResourceContext& context) : gif(context) {
}
// INLINED
CEmblemRes::~CEmblemRes() = default;
// OFFSET: 0x0074C9F0
// OFFSET: 0x0074CA90
// OFFSET: 0x0074CD00
// FUNCTION: fn_07882
void CEmblemRes::Unload() {
this->gif.Unload();
}
// OFFSET: 0x0074CD10
// FUNCTION: fn_07883
void CEmblemRes::Slot02() {
this->gif.Slot02();
}
// OFFSET: 0x0074CD20
// FUNCTION: fn_07884
bool CEmblemRes::IsTransient() {
return this->gif.IsTransient();
}
// OFFSET: 0x0074CD40

View file

@ -0,0 +1,21 @@
#ifndef RAGNAROK_SOURCE_RESOURCE_EMBLEMRESOURCE_H
#define RAGNAROK_SOURCE_RESOURCE_EMBLEMRESOURCE_H
#include "Resource/GifResource.h"
#include "Resource/Resource.h"
class CEmblemRes : public CRes {
public:
explicit CEmblemRes(BitmapResourceContext& context);
~CEmblemRes() override;
void Slot02() override;
bool IsTransient() override;
CEmblemRes* Create() override;
bool Load(const char* name) override;
void Unload() override;
void MissingFile(CRenderSystemBase* system, const char* name) override;
/* 0110 */ CGifRes gif;
};
#endif

View file

@ -562,6 +562,7 @@
"Source/Resource/Bitmap/BitmapImagePng.cpp": 3,
"Source/Resource/Bitmap/BitmapResource.cpp": 3,
"Source/Resource/EZeffectResource.cpp": 3,
"Source/Resource/EmblemResource.cpp": 3,
"Source/Resource/GifLzw.cpp": 3,
"Source/Resource/GifResource.cpp": 3,
"Source/Resource/ImfLayerIndex.cpp": 3,