Skip to content

Commit 6179420

Browse files
committed
whoops
1 parent 2ebbb75 commit 6179420

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

mod.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"geode": "5.0.0-beta.2",
2+
"geode": "5.0.0-beta.3",
33
"version": "v1.5.4",
44
"gd": {
55
"win": "2.2081",

src/main.cpp

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// Ported with help by Firee
33
// Mod made by Jouca & Firee
44

5+
//#include "defs/FileWatcher.hpp"
56
#include "modules/events/DailyChest.hpp"
67
$execute {
78
// listenForSettingChanges("activate-background", [](bool value) {
@@ -16,10 +17,10 @@
1617
#include <arc/sync/mpsc.hpp>
1718
#include <arc/sync/Mutex.hpp>
1819
#include <arc/future/Select.hpp>
19-
#include <modules/events/EventHandler.hpp>
2020
#include <modules/events/EventsPush.hpp>
2121

22-
bool g_socket_server_ran = false;
22+
static bool g_socket_server_ran = false;
23+
//static FileWatcher* g_watcher;
2324

2425
$execute {
2526
if (Mod::get()->getSettingValue<bool>("server-notification")) {
@@ -73,6 +74,12 @@ bool g_socket_server_ran = false;
7374
);
7475
}
7576
});
77+
/*auto watcher = FileWatcher::getForDirectory("gdutils");
78+
watcher->watch("gdutils.heartbeat", [] {
79+
});
80+
async::runtime().spawn([]() -> arc::Future<> {
81+
co_return;
82+
});*/
7683
}
7784

7885
$on_game(Loaded) {

0 commit comments

Comments
 (0)