mirror of
https://github.com/geode-sdk/geode.git
synced 2025-03-24 03:39:56 -04:00
sorry for the 2 people that manually includes the jsontest headers
This commit is contained in:
parent
afd54a64e4
commit
1d444ed05e
7 changed files with 13 additions and 26 deletions
loader
include/Geode/loader
src
test
|
@ -1,5 +0,0 @@
|
|||
#include "Mod.hpp"
|
||||
|
||||
#include <matjson.hpp>
|
||||
|
||||
namespace geode {}
|
|
@ -288,6 +288,19 @@ namespace geode {
|
|||
static T get(SettingValue* setting);
|
||||
static void set(SettingValue* setting, T const& value);
|
||||
};
|
||||
|
||||
template<class T>
|
||||
bool GeodeSettingValue<T>::load(matjson::Value const& json) {
|
||||
if (!json.is<ValueType>()) return false;
|
||||
m_value = json.as<ValueType>();
|
||||
return true;
|
||||
}
|
||||
|
||||
template<class T>
|
||||
bool GeodeSettingValue<T>::save(matjson::Value& json) const {
|
||||
json = m_value;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
#pragma warning(pop)
|
||||
|
|
|
@ -1,17 +0,0 @@
|
|||
#include "Setting.hpp"
|
||||
#include <matjson.hpp>
|
||||
|
||||
namespace geode {
|
||||
template<class T>
|
||||
bool GeodeSettingValue<T>::load(matjson::Value const& json) {
|
||||
if (!json.is<ValueType>()) return false;
|
||||
m_value = json.as<ValueType>();
|
||||
return true;
|
||||
}
|
||||
|
||||
template<class T>
|
||||
bool GeodeSettingValue<T>::save(matjson::Value& json) const {
|
||||
json = m_value;
|
||||
return true;
|
||||
}
|
||||
}
|
|
@ -8,7 +8,6 @@
|
|||
#include <Geode/loader/Log.hpp>
|
||||
#include <Geode/loader/Mod.hpp>
|
||||
#include <Geode/loader/SettingEvent.hpp>
|
||||
#include <Geode/loader/ModJsonTest.hpp>
|
||||
#include <Geode/utils/JsonValidation.hpp>
|
||||
#include <loader/LogImpl.hpp>
|
||||
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
#include <Geode/loader/Setting.hpp>
|
||||
#include <Geode/loader/SettingEvent.hpp>
|
||||
#include <Geode/loader/SettingNode.hpp>
|
||||
#include <Geode/loader/SettingJsonTest.hpp>
|
||||
#include <Geode/utils/general.hpp>
|
||||
#include <Geode/utils/JsonValidation.hpp>
|
||||
#include <re2/re2.h>
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
#include <Geode/modify/MenuLayer.hpp>
|
||||
#include <Geode/loader/SettingNode.hpp>
|
||||
#include <Geode/loader/Dispatch.hpp>
|
||||
#include <Geode/loader/ModJsonTest.hpp>
|
||||
#include <Geode/Bindings.hpp>
|
||||
#include "main.hpp"
|
||||
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
#include <Geode/Loader.hpp>
|
||||
#include <Geode/loader/ModJsonTest.hpp>
|
||||
#include <Geode/loader/ModEvent.hpp>
|
||||
#include <Geode/utils/cocos.hpp>
|
||||
#include "../dependency/main.hpp"
|
||||
|
|
Loading…
Add table
Reference in a new issue