Skip to content

Commit 302ae67

Browse files
committed
fix..? 🙏
1 parent 2c50f69 commit 302ae67

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/modify/FMODAudioEngine.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
1-
#include "Geode/binding/FMODAudioEngine.hpp"
21
#include <Geode/Geode.hpp>
32
#include <Geode/modify/FMODAudioEngine.hpp>
43

54
using namespace geode::prelude;
65

76
class $modify(MyFMODAudioEngine, FMODAudioEngine) {
87
public:
9-
void playMusic(std::string name, bool shouldLoop, float fadeInTime, int channel) {
8+
void playMusic(gd::string name, bool shouldLoop, float fadeInTime, int channel) {
109
log::debug("Playing music: {}", name);
1110
std::string newName = "ninxout.wav"_spr;
12-
if ((name.find("menuLoop.mp3") != std::string::npos) && Mod::get()->getSettingValue<bool>("menu-loop")) {
11+
if (name == "menuLoop.mp3" && Mod::get()->getSettingValue<bool>("menu-loop")) {
1312
name = newName;
1413
log::debug("Changed music to: {}", name);
1514
}

0 commit comments

Comments
 (0)