This repository was archived by the owner on Oct 7, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -12,10 +12,12 @@ namespace openhack::hooks::ChannelControl {
12
12
}
13
13
}
14
14
15
+ #ifdef PLATFORM_WINDOWS
15
16
$execute {
16
17
(void ) geode::Mod::get ()->hook (
17
18
(void *) gd::findSignature (" FMOD::ChannelControl::setVolume" ),
18
19
&openhack::hooks::ChannelControl::setVolume,
19
20
" FMOD::ChannelControl::setVolume" ,
20
21
tulip::hook::TulipConvention::Stdcall);
21
- }
22
+ }
23
+ #endif
Original file line number Diff line number Diff line change @@ -30,10 +30,12 @@ namespace openhack::hooks {
30
30
};
31
31
}
32
32
33
+ #ifdef PLATFORM_WINDOWS
33
34
$execute {
34
35
(void ) geode::Mod::get ()->hook (
35
36
(void *) gd::findOffset (" GJBaseGameLayer::processCommands" ),
36
37
&openhack::hooks::GJBaseGameLayerHook::processCommands,
37
38
" GJBaseGameLayer::processCommands" ,
38
39
tulip::hook::TulipConvention::Thiscall);
39
40
}
41
+ #endif
Original file line number Diff line number Diff line change @@ -18,11 +18,12 @@ namespace openhack::hooks::MenuGameLayerHook {
18
18
};
19
19
}
20
20
21
+ #ifdef PLATFORM_WINDOWS
21
22
$execute {
22
23
(void ) geode::Mod::get ()->hook (
23
24
(void *) gd::findOffset (" MenuGameLayer::tryJump" ),
24
25
&openhack::hooks::MenuGameLayerHook::tryJump,
25
26
" MenuGameLayer::tryJump" ,
26
27
tulip::hook::TulipConvention::Thiscall);
27
28
}
28
-
29
+ # endif
You can’t perform that action at this time.
0 commit comments