Skip to content

Commit ecec236

Browse files
committed
completely forgot to actually define that old destructor lock
1 parent 5c2d198 commit ecec236

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

codegen/src/SourceGen.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,13 @@ namespace { namespace format_strings {
1111
using namespace geode;
1212
using namespace geode::modifier;
1313
14+
#ifndef GEODE_USE_NEW_DESTRUCTOR_LOCK
15+
std::unordered_map<void*, bool>& cocos2d::CCDestructor::destructorLock() {{
16+
static thread_local std::unordered_map<void*, bool> s_lock;
17+
return s_lock;
18+
}}
19+
#endif
20+
1421
auto wrapFunction(uintptr_t address, tulip::hook::WrapperMetadata const& metadata) {
1522
auto wrapped = geode::hook::createWrapper(reinterpret_cast<void*>(address), metadata);
1623
if (wrapped.isErr()) {{

0 commit comments

Comments
 (0)