Skip to content

Commit b18ef8e

Browse files
committed
will this fix it
1 parent 1a7d40b commit b18ef8e

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

src/MoreLeaderboards/CustomScoreCell.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -423,6 +423,8 @@ class $modify(CustomScoreCell, GJScoreCell) {
423423
demon_label->setLayoutOptions(demon_label_layout);
424424
statsMenu->addChild(demon_label);
425425
break;
426+
default:
427+
break;
426428
}
427429

428430
statsMenu->updateLayout();

src/Utils/DownloadManager.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ void DownloadManager::setup() {
8181

8282
const std::function<void(geode::ByteVector const&)> then = [this](geode::ByteVector const& data) {
8383
// Save the file
84-
geode::utils::file::writeBinary(this->m_sDestination, data);
84+
(void)geode::utils::file::writeBinary(this->m_sDestination, data);
8585

8686
ProcessLambdas::callMenuHandler(this, this->m_pSelector);
8787
this->onClose(CCNode::create());

src/main.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ bool show_connected = false;
3131
std::queue<mqtt::const_message_ptr> dataQueue;
3232
std::queue<int> chestQueue;
3333

34-
std::queue<mqtt::const_message_ptr> eventQueue;
34+
std::queue<mqtt::const_message_ptr> msgQueue;
3535

3636
class MQTT {
3737
private:
@@ -81,7 +81,7 @@ class MQTT {
8181

8282
void message_arrived(mqtt::const_message_ptr data) override {
8383
log::info("call rate event");
84-
eventQueue.push(data);
84+
msgQueue.push(data);
8585
}
8686

8787
void delivery_complete(mqtt::delivery_token_ptr token) override {}
@@ -217,7 +217,7 @@ class EventHandler : public CCObject {
217217
processEvent(scene);
218218
}
219219
}
220-
if (eventQueue.empty()) return;
220+
if (msgQueue.empty()) return;
221221
bool everywhereElse = Mod::get()->template getSettingValue<bool>("everywhereElse");
222222
bool inLevels = Mod::get()->template getSettingValue<bool>("inLevels");
223223
bool inEditor = Mod::get()->template getSettingValue<bool>("inEditor");
@@ -239,8 +239,8 @@ class EventHandler : public CCObject {
239239
if ((layerName != "LevelEditorLayer" && layerName != "PlayLayer") && !everywhereElse) {
240240
pushEvent = false;
241241
}
242-
dataQueue.push(eventQueue.front());
243-
eventQueue.pop();
242+
dataQueue.push(msgQueue.front());
243+
msgQueue.pop();
244244
if (pushEvent) processEvent(scene);
245245
}
246246
void checkForFiles() {

0 commit comments

Comments
 (0)