Added ostd::JsonFile::isLoaded method

This commit is contained in:
OmniaX-Dev 2026-03-09 00:36:27 +01:00
parent 9ce48e6e3f
commit 42a2ee330b
2 changed files with 2 additions and 1 deletions

View file

@ -1 +1 @@
2008
2009

View file

@ -35,6 +35,7 @@ namespace ostd
inline JsonFile(void) { m_loaded = false; }
inline JsonFile(const ostd::String& filePath) { init(filePath); }
bool init(const ostd::String& filePath, bool writeable = true, const json* obj = nullptr);
inline bool isLoaded(void) const { return m_loaded; }
template<class T> T get(const ostd::String& name);
template<class T> bool set(const ostd::String& name, T value);