From 42a2ee330b2f5c40e9c63f0107c902b3e980998e Mon Sep 17 00:00:00 2001 From: OmniaX-Dev Date: Mon, 9 Mar 2026 00:36:27 +0100 Subject: [PATCH] Added ostd::JsonFile::isLoaded method --- other/build.nr | 2 +- src/ostd/io/Json.hpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/other/build.nr b/other/build.nr index 9142bb4..fe36e8b 100644 --- a/other/build.nr +++ b/other/build.nr @@ -1 +1 @@ -2008 +2009 diff --git a/src/ostd/io/Json.hpp b/src/ostd/io/Json.hpp index f2b6ca8..0ca8926 100644 --- a/src/ostd/io/Json.hpp +++ b/src/ostd/io/Json.hpp @@ -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 T get(const ostd::String& name); template bool set(const ostd::String& name, T value);