From 16d2e4d0b8436d0e52a5d1a4848a022dc23f53bc Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Wed, 28 Oct 2026 12:58:12 +0000 Subject: [PATCH] Decompile 22 functions in Source/Contents/EffectResourceSwitcher.cpp, Source/Contents/Effects/Effect.h Batch #1446 by Yommy: 22 byte-identical, 0 confirmed by peer review. - fn_03083 CEffect::Slot10: byte-identical - fn_03084 CEffect::Slot08: byte-identical - fn_03090 CEffect::Slot28: byte-identical - fn_03092 CEffect::Slot01: byte-identical - fn_03094 CEffect::Slot12: byte-identical - fn_03095 CEffect::Slot07: byte-identical - fn_03098 CEffect::Slot04: byte-identical - fn_03099 CEffect::Slot00: byte-identical - fn_03100 CEffect::Slot23: byte-identical - fn_03101 CEffect::Slot24: byte-identical - fn_03102 CEffect::Slot26: byte-identical - fn_03103 CEffect::Slot27: byte-identical - fn_03104 CEffect::Slot21: byte-identical - fn_03105 CEffect::Slot32: byte-identical - fn_03106 CEffect::Slot15: byte-identical - fn_03107 CEffect::Slot14: byte-identical - fn_03108 CEffect::Slot17: byte-identical - fn_03109 CEffect::Slot18: byte-identical - fn_03110 CEffect::Slot19: byte-identical - fn_03111 CEffect::Slot22: byte-identical - fn_03112 CEffect::Slot13: byte-identical - fn_03114 CEffect::Slot20: byte-identical Merged automatically: every function is byte-identical to the original. Adds to the build: Source/Contents/EffectResourceSwitcher.cpp --- Source/Contents/EffectResourceSwitcher.cpp | 119 +++++++++++++++++++++ Source/Contents/Effects/Effect.h | 26 +++++ data/compile.json | 1 + 3 files changed, 146 insertions(+) create mode 100644 Source/Contents/EffectResourceSwitcher.cpp diff --git a/Source/Contents/EffectResourceSwitcher.cpp b/Source/Contents/EffectResourceSwitcher.cpp new file mode 100644 index 00000000..423a620c --- /dev/null +++ b/Source/Contents/EffectResourceSwitcher.cpp @@ -0,0 +1,119 @@ +#include "Contents/Effects/Effect.h" +#include "Contents/Effects/EffectPrimitiveState.h" + +#include + +// OFFSET: 0x005A2110 +// FUNCTION: fn_03083 +void CEffect::Slot10(int) { +} + +// OFFSET: 0x005A2120 +// FUNCTION: fn_03084 +void CEffect::Slot08(int, int, int) { +} + +// OFFSET: 0x005A2130 + +// OFFSET: 0x005A2170 + +// OFFSET: 0x005A2190 +// FUNCTION: fn_03090 +int CEffect::Slot28() { + return 0; +} + +// OFFSET: 0x005A21C0 +// FUNCTION: fn_03092 +void CEffect::Slot01() { +} + +// OFFSET: 0x005A22E0 +// FUNCTION: fn_03094 +void CEffect::Slot12() { +} + +// OFFSET: 0x005A22F0 +// FUNCTION: fn_03095 +void CEffect::Slot07() { +} + +// OFFSET: 0x005A2430 +// FUNCTION: fn_03098 +void CEffect::Slot04() { +} + +// OFFSET: 0x005A2440 +// FUNCTION: fn_03099 +void CEffect::Slot00(int) { +} + +// OFFSET: 0x005A2450 +// FUNCTION: fn_03100 +void CEffect::Slot23(int) { +} + +// OFFSET: 0x005A2460 +// FUNCTION: fn_03101 +void CEffect::Slot24(int, int, int, int, int) { +} + +// OFFSET: 0x005A2470 +// FUNCTION: fn_03102 +void CEffect::Slot26(int) { +} + +// OFFSET: 0x005A2480 +// FUNCTION: fn_03103 +void CEffect::Slot27(int) { +} + +// OFFSET: 0x005A2490 +// FUNCTION: fn_03104 +void CEffect::Slot21(int) { +} + +// OFFSET: 0x005A24A0 +// FUNCTION: fn_03105 +void CEffect::Slot32() { +} + +// OFFSET: 0x005A24B0 +// FUNCTION: fn_03106 +void CEffect::Slot15(int) { +} + +// OFFSET: 0x005A24C0 +// FUNCTION: fn_03107 +void CEffect::Slot14(int) { +} + +// OFFSET: 0x005A24D0 +// FUNCTION: fn_03108 +void CEffect::Slot17(int) { +} + +// OFFSET: 0x005A24E0 +// FUNCTION: fn_03109 +void CEffect::Slot18(int) { +} + +// OFFSET: 0x005A24F0 +// FUNCTION: fn_03110 +void CEffect::Slot19(int) { +} + +// OFFSET: 0x005A2500 +// FUNCTION: fn_03111 +void CEffect::Slot22(int) { +} + +// OFFSET: 0x005A2510 +// FUNCTION: fn_03112 +void CEffect::Slot13(int) { +} + +// OFFSET: 0x005A2540 +// FUNCTION: fn_03114 +void CEffect::Slot20(int) { +} diff --git a/Source/Contents/Effects/Effect.h b/Source/Contents/Effects/Effect.h index 01378014..49729e4d 100644 --- a/Source/Contents/Effects/Effect.h +++ b/Source/Contents/Effects/Effect.h @@ -7,6 +7,8 @@ #include #include +struct EffectVector3; + struct EffectEvent { /* 0000 */ int kind; /* 0004 */ int frame; @@ -19,6 +21,30 @@ public: explicit CEffect(int id); virtual ~CEffect(); virtual void Close(); + virtual void Slot00(int argument); + virtual void Slot01(); + virtual void Slot04(); + virtual void Slot07(); + virtual void Slot08(int argument1, int argument2, int argument3); + virtual void Slot10(int argument); + virtual void Slot11(std::string name); + virtual void Slot12(); + virtual void Slot13(int argument); + virtual void Slot14(int argument); + virtual void Slot15(int argument); + virtual void Slot17(int argument); + virtual void Slot18(int argument); + virtual void Slot19(int argument); + virtual void Slot20(int argument); + virtual void Slot21(int argument); + virtual void Slot22(int argument); + virtual void Slot23(int argument); + virtual void Slot24(int argument1, int argument2, int argument3, int argument4, int argument5); + virtual EffectVector3 Slot25(); + virtual void Slot26(int argument); + virtual void Slot27(int argument); + virtual int Slot28(); + virtual void Slot32(); void AddEvent(int kind, const char* text, int frame, int argument); void SetEventFrame(int kind, int frame); diff --git a/data/compile.json b/data/compile.json index bee39765..d88bceac 100644 --- a/data/compile.json +++ b/data/compile.json @@ -288,6 +288,7 @@ "Source/Contents/Configuration/ScriptOptions.cpp": 4, "Source/Contents/Configuration/ServiceConfiguration.cpp": 4, "Source/Contents/Configuration/ServiceOptions.cpp": 4, + "Source/Contents/EffectResourceSwitcher.cpp": 4, "Source/Contents/Effects/AttachedEffect.cpp": 4, "Source/Contents/Effects/Effect.cpp": 0, "Source/Contents/Effects/EffectActor.cpp": 4,