Decompile 4 functions in Source/Contents/Effects/Particle.cpp, Source/Resource/EZeffectResource.cpp, ...

Batch #16509 by eAthena: 0 byte-identical, 4 confirmed by peer review.

- fn_07898 EZeffectClip::Texture: logic confirmed by peer review
- fn_18825 CEZ2STRParticle::RenderBillboard: logic confirmed by peer review
- fn_18826 CEZ2STRParticle::RenderScreen: logic confirmed by peer review
- fn_18827 CEZ2STRParticle::RenderGround: logic confirmed by peer review

Peer-reviewed-by: ragnarok-clanker, Yommy, br4yan
Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
This commit is contained in:
ragnarok-clanker 2026-11-10 22:45:52 +00:00
commit e5e26a3bfc
3 changed files with 31 additions and 30 deletions

View file

@ -121,26 +121,26 @@ CTexture* EZeffectClip::Texture(int index) {
// OFFSET: 0x0074D9A0
// FUNCTION: fn_07898
CTexture* EZeffectClip::Texture(int index, const char* prefix) {
if (index >= this->textureCount) {
return g_texMgr.Default();
}
CTexture* EZeffectClip::Texture(int index, const std::string& prefix) {
if (index < this->textureCount) {
if (!this->textures[index]) {
std::string path = std::format("effect\\{}{}", prefix, this->names[index]);
if (!this->textures[index]) {
std::string path = std::format("effect\\{}{}", prefix, this->names[index]);
if (path.find_last_of('.') == std::string::npos) {
path.append(".bmp", 4);
}
if (path.find_last_of('.') == std::string::npos) {
path.append(".bmp", 4);
this->textures[index] = g_texMgr.Load(path.c_str(), 1, false, true, false);
if (this->textures[index]) {
this->textures[index]->Retain();
}
}
this->textures[index] = g_texMgr.Load(path.c_str(), 1, false, true, false);
if (this->textures[index]) {
this->textures[index]->Retain();
}
return this->textures[index];
}
return this->textures[index];
return g_texMgr.Default();
}
// INLINED