mirror of
https://github.com/geode-sdk/geode.git
synced 2024-11-14 19:15:05 -05:00
fix fmodfix cc and update tuliphook
This commit is contained in:
parent
682144f188
commit
1a67f9b862
2 changed files with 3 additions and 1 deletions
|
@ -231,7 +231,7 @@ if (DEFINED GEODE_TULIPHOOK_REPO_PATH)
|
|||
message(STATUS "Using ${GEODE_TULIPHOOK_REPO_PATH} for TulipHook")
|
||||
add_subdirectory(${GEODE_TULIPHOOK_REPO_PATH} ${GEODE_TULIPHOOK_REPO_PATH}/build)
|
||||
else()
|
||||
CPMAddPackage("gh:geode-sdk/TulipHook#047031e")
|
||||
CPMAddPackage("gh:geode-sdk/TulipHook#a46fb9e")
|
||||
endif()
|
||||
set(CMAKE_WARN_DEPRECATED ON CACHE BOOL "" FORCE)
|
||||
|
||||
|
|
|
@ -28,12 +28,14 @@ $execute {
|
|||
reinterpret_cast<void*>(geode::addresser::getNonVirtual(&FMOD::System::init)),
|
||||
&FMOD_System_init_hook,
|
||||
"FMOD::System::init"
|
||||
GEODE_WINDOWS(, tulip::hook::TulipConvention::Stdcall)
|
||||
);
|
||||
|
||||
(void)geode::Mod::get()->hook(
|
||||
reinterpret_cast<void*>(geode::addresser::getNonVirtual(&FMOD::ChannelControl::setVolume)),
|
||||
&FMOD_ChannelControl_setVolume_hook,
|
||||
"FMOD::ChannelControl::setVolume"
|
||||
GEODE_WINDOWS(, tulip::hook::TulipConvention::Stdcall)
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue