mirror of
https://github.com/geode-sdk/geode.git
synced 2025-01-07 05:02:06 -05:00
28 lines
496 B
C++
28 lines
496 B
C++
|
#include <FileWatcher.hpp>
|
||
|
|
||
|
#ifdef GEODE_IS_ANDROID
|
||
|
|
||
|
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;
|
||
|
}
|
||
|
|
||
|
#endif
|