Port the 12340 string interning table (Mac 4.0.1 design) and TRefCnt in RefCount.h. All functions verified against the binary. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
31 lines
455 B
C++
31 lines
455 B
C++
#ifndef ENGINE_SOURCE_BASE_REFCOUNT_H
|
|
#define ENGINE_SOURCE_BASE_REFCOUNT_H
|
|
|
|
#include <cstdint>
|
|
|
|
class TRefCnt {
|
|
public:
|
|
/* 0004 */ uint32_t m_refcnt;
|
|
|
|
TRefCnt();
|
|
virtual void DeleteSelf();
|
|
virtual ~TRefCnt();
|
|
};
|
|
|
|
// INLINED
|
|
inline TRefCnt::TRefCnt() {
|
|
this->m_refcnt = 0;
|
|
}
|
|
|
|
// VERIFY: 9e4f100c manual
|
|
// OFFSET: 0x00407920
|
|
inline void TRefCnt::DeleteSelf() {
|
|
delete this;
|
|
}
|
|
|
|
// INLINED
|
|
inline TRefCnt::~TRefCnt() {
|
|
}
|
|
|
|
#endif
|