Skip to content

Commit

Permalink
Dragon's Dogma 2: Fix crashes
Browse files Browse the repository at this point in the history
  • Loading branch information
praydog committed Mar 8, 2024
1 parent 070aa63 commit 04726bf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions shared/sdk/REContext.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ class VM : public regenny::via::clr::VM {
class VM {
#endif
public:
static inline uint32_t s_tdb_version{0};
static VM* get();

public:
Expand Down
6 changes: 5 additions & 1 deletion src/mods/Hooks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -852,7 +852,11 @@ void Hooks::global_application_entry_hook_internal(void* entry, const char* name
return original(entry);
}

{
const auto should_allow_ignore = sdk::VM::s_tdb_version >= 73 ?
(hash != 0x76b8100bec7c12c3 && hash != 0x9f63c0fc4eea6626) :
true;

if (should_allow_ignore) {
std::shared_lock _{m_application_entry_data_mutex};

if (m_ignored_application_entries.contains(hash)) {
Expand Down

0 comments on commit 04726bf

Please sign in to comment.