mirror of
https://github.com/geode-sdk/geode.git
synced 2024-12-13 17:41:15 -05:00
be7ee3ef18
* move console stuff from loader * compile platform sources only per platform * move ipc from loader * move updater from loader * remove Loader::didLastLaunchCrash * remove platformdata from loader * move updaters events and filters too
23 lines
463 B
C++
23 lines
463 B
C++
#include <FileWatcher.hpp>
|
|
|
|
FileWatcher::FileWatcher(
|
|
ghc::filesystem::path const& file, FileWatchCallback callback, ErrorCallback error
|
|
) {
|
|
m_filemode = ghc::filesystem::is_regular_file(file);
|
|
|
|
m_platformHandle = nullptr;
|
|
m_file = file;
|
|
m_callback = callback;
|
|
m_error = error;
|
|
}
|
|
|
|
FileWatcher::~FileWatcher() {
|
|
}
|
|
|
|
void FileWatcher::watch() {
|
|
// TODO: setup inotify or something
|
|
}
|
|
|
|
bool FileWatcher::watching() const {
|
|
return false;
|
|
}
|