diff --git a/changelog.md b/changelog.md index b24fe99..e04893a 100644 --- a/changelog.md +++ b/changelog.md @@ -5,7 +5,7 @@ - Added **Customizable Noclip Tint Colour** - Added **CPS Counter instant colour fade** - Added **Customizable Pause Countdown Time** -- **Added Intel macOS support** +- **Added [EXPERIMENTAL] Intel macOS support** # 1.5.3 diff --git a/src/Hacks/PitchShifter.cpp b/src/Hacks/PitchShifter.cpp index bfd5154..a8b861a 100644 --- a/src/Hacks/PitchShifter.cpp +++ b/src/Hacks/PitchShifter.cpp @@ -11,7 +11,7 @@ void updatePitch() { if (pitchDSP) #ifdef GEODE_IS_IOS - reinterpret_cast(geode::base::get() + 0x501e90)(masterGroup, pitchDSP); //removeDSP + reinterpret_cast(geode::base::get() + 0x50e448)(masterGroup, pitchDSP); //removeDSP #else masterGroup->removeDSP(pitchDSP); #endif @@ -20,15 +20,15 @@ void updatePitch() return; #ifdef GEODE_IS_IOS - reinterpret_cast(geode::base::get() + 0x4c883c)(FMODAudioEngine::sharedEngine()->m_system, FMOD_DSP_TYPE_PITCHSHIFT, &pitchDSP); //createDSPByType - reinterpret_cast(geode::base::get() + 0x501d60)(masterGroup, 0, pitchDSP); //addDSP + reinterpret_cast(geode::base::get() + 0x4d4df4)(FMODAudioEngine::sharedEngine()->m_system, FMOD_DSP_TYPE_PITCHSHIFT, &pitchDSP); //createDSPByType + reinterpret_cast(geode::base::get() + 0x50e318)(masterGroup, 0, pitchDSP); //addDSP #else FMODAudioEngine::sharedEngine()->m_system->createDSPByType(FMOD_DSP_TYPE_PITCHSHIFT, &pitchDSP); masterGroup->addDSP(0, pitchDSP); #endif #ifdef GEODE_IS_IOS - reinterpret_cast(geode::base::get() + 0x482a84)(pitchDSP, FMOD_DSP_PITCHSHIFT_PITCH, Client::GetModuleEnabled("pitch-shifter") ? pitchAmount->getFloatValue() : 1); //setParameterFloat + reinterpret_cast(geode::base::get() + 0x48f03c)(pitchDSP, FMOD_DSP_PITCHSHIFT_PITCH, Client::GetModuleEnabled("pitch-shifter") ? pitchAmount->getFloatValue() : 1); //setParameterFloat #else pitchDSP->setParameterFloat(FMOD_DSP_PITCHSHIFT_PITCH, Client::GetModuleEnabled("pitch-shifter") ? pitchAmount->getFloatValue() : 1); #endif diff --git a/src/Hacks/Speedhack.cpp b/src/Hacks/Speedhack.cpp index e648287..b062284 100644 --- a/src/Hacks/Speedhack.cpp +++ b/src/Hacks/Speedhack.cpp @@ -30,7 +30,7 @@ float speedhackLogic(float dt) if (!(PlayLayer::get() || GameManager::sharedState()->getEditorLayer())) { v = 1.0f; } #ifdef GEODE_IS_IOS - reinterpret_cast(geode::base::get() + 0x4ffec4)(masterGroup, SpeedhackMus::instance->enabled ? v : 1); + reinterpret_cast(geode::base::get() + 50c47c)(masterGroup, SpeedhackMus::instance->enabled ? v : 1); #else masterGroup->setPitch(SpeedhackMus::instance->enabled ? v : 1); #endif @@ -40,7 +40,7 @@ float speedhackLogic(float dt) } #ifdef GEODE_IS_IOS - reinterpret_cast(geode::base::get() + 0x4ffec4)(masterGroup, 1); + reinterpret_cast(geode::base::get() + 0x50c47c)(masterGroup, 1); #else masterGroup->setPitch(1); #endif @@ -85,7 +85,7 @@ void myUpdate(CCScheduler* ins, float dt) #ifdef GEODE_IS_IOS FMOD_RESULT FMOD_System_createChannelGroup(FMOD::System* self, const char *name, FMOD::ChannelGroup **channelgroup) { - auto res = reinterpret_cast(geode::base::get() + 0x4c8964)(self, name, channelgroup); + auto res = reinterpret_cast(geode::base::get() + 0x4d4f1c)(self, name, channelgroup); if (!masterGroup) masterGroup = *channelgroup; @@ -97,7 +97,7 @@ FMOD_RESULT FMOD_System_createChannelGroup(FMOD::System* self, const char *name, $execute { Mod::get()->hook( - reinterpret_cast(geode::base::get() + 0x4c8964), // address + reinterpret_cast(geode::base::get() + 0x4d4f1c), // address &FMOD_System_createChannelGroup, // detour "FMOD::System::createChannelGroup", // display name, shows up on the console tulip::hook::TulipConvention::Cdecl // calling convention