We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c2d198 commit ecec236Copy full SHA for ecec236
codegen/src/SourceGen.cpp
@@ -11,6 +11,13 @@ namespace { namespace format_strings {
11
using namespace geode;
12
using namespace geode::modifier;
13
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
+
21
auto wrapFunction(uintptr_t address, tulip::hook::WrapperMetadata const& metadata) {
22
auto wrapped = geode::hook::createWrapper(reinterpret_cast<void*>(address), metadata);
23
if (wrapped.isErr()) {{
0 commit comments