Skip to content
This repository was archived by the owner on Oct 7, 2024. It is now read-only.

Commit 97153b8

Browse files
committed
ifdef manual hooks
1 parent b571db2 commit 97153b8

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

src/geode/hooks/ChannelControl.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,12 @@ namespace openhack::hooks::ChannelControl {
1212
}
1313
}
1414

15+
#ifdef PLATFORM_WINDOWS
1516
$execute {
1617
(void) geode::Mod::get()->hook(
1718
(void *) gd::findSignature("FMOD::ChannelControl::setVolume"),
1819
&openhack::hooks::ChannelControl::setVolume,
1920
"FMOD::ChannelControl::setVolume",
2021
tulip::hook::TulipConvention::Stdcall);
21-
}
22+
}
23+
#endif

src/geode/hooks/GJBaseGameLayer.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,12 @@ namespace openhack::hooks {
3030
};
3131
}
3232

33+
#ifdef PLATFORM_WINDOWS
3334
$execute {
3435
(void) geode::Mod::get()->hook(
3536
(void *) gd::findOffset("GJBaseGameLayer::processCommands"),
3637
&openhack::hooks::GJBaseGameLayerHook::processCommands,
3738
"GJBaseGameLayer::processCommands",
3839
tulip::hook::TulipConvention::Thiscall);
3940
}
41+
#endif

src/geode/hooks/MainGameLayer.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,12 @@ namespace openhack::hooks::MenuGameLayerHook {
1818
};
1919
}
2020

21+
#ifdef PLATFORM_WINDOWS
2122
$execute {
2223
(void) geode::Mod::get()->hook(
2324
(void *) gd::findOffset("MenuGameLayer::tryJump"),
2425
&openhack::hooks::MenuGameLayerHook::tryJump,
2526
"MenuGameLayer::tryJump",
2627
tulip::hook::TulipConvention::Thiscall);
2728
}
28-
29+
#endif

0 commit comments

Comments
 (0)