-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b157158
commit 53b7bb9
Showing
16 changed files
with
117 additions
and
277 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,20 @@ | ||
#pragma once | ||
|
||
class Config | ||
namespace Config | ||
{ | ||
public: | ||
class Patches | ||
namespace Patches | ||
{ | ||
public: | ||
inline static DKUtil::Alias::Boolean bEnableLoadingEditorIDs{ "bEnableLoadingEditorIDs", "Patches" }; | ||
inline static DKUtil::Alias::Boolean bEnableEDIDConflictCheck{ "bEnableEDIDConflictCheck", "Patches" }; | ||
inline static DKUtil::Alias::String sBetaCommentFileName{ "sBetaCommentFileName", "Patches" }; | ||
}; | ||
static REX::INI::Bool bEnableLoadingEditorIDs{ "bEnableLoadingEditorIDs", "Patches", true }; | ||
static REX::INI::Bool bEnableEDIDConflictCheck{ "bEnableEDIDConflictCheck", "Patches", false }; | ||
static REX::INI::Str sBetaCommentFileName{ "sBetaCommentFileName", "Patches", "BetaComment.txt"s }; | ||
} | ||
|
||
static void Load() | ||
{ | ||
static auto Config = COMPILE_PROXY("BakaFramework.ini"); | ||
Config.Bind(Patches::bEnableLoadingEditorIDs, true); | ||
Config.Bind(Patches::bEnableEDIDConflictCheck, false); | ||
Config.Bind(Patches::sBetaCommentFileName, "BetaComment.txt"); | ||
Config.Load(); | ||
const auto ini = REX::INI::SettingStore::GetSingleton(); | ||
ini->Init( | ||
"Data/F4SE/plugins/BakaFramework.ini", | ||
"Data/F4SE/plugins/BakaFrameworkCustom.ini"); | ||
ini->Load(); | ||
} | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,145 +1,7 @@ | ||
#pragma once | ||
|
||
// c | ||
#include <cassert> | ||
#include <cctype> | ||
#include <cerrno> | ||
#include <cfenv> | ||
#include <cfloat> | ||
#include <cinttypes> | ||
#include <climits> | ||
#include <clocale> | ||
#include <cmath> | ||
#include <csetjmp> | ||
#include <csignal> | ||
#include <cstdarg> | ||
#include <cstddef> | ||
#include <cstdint> | ||
#include <cstdio> | ||
#include <cstdlib> | ||
#include <cstring> | ||
#include <ctime> | ||
#include <cuchar> | ||
#include <cwchar> | ||
#include <cwctype> | ||
|
||
// cxx | ||
#include <algorithm> | ||
#include <any> | ||
#include <array> | ||
#include <atomic> | ||
#include <barrier> | ||
#include <bit> | ||
#include <bitset> | ||
#include <charconv> | ||
#include <chrono> | ||
#include <compare> | ||
#include <complex> | ||
#include <concepts> | ||
#include <condition_variable> | ||
#include <deque> | ||
#include <exception> | ||
#include <execution> | ||
#include <filesystem> | ||
#include <format> | ||
#include <forward_list> | ||
#include <fstream> | ||
#include <functional> | ||
#include <future> | ||
#include <initializer_list> | ||
#include <iomanip> | ||
#include <ios> | ||
#include <iosfwd> | ||
#include <iostream> | ||
#include <istream> | ||
#include <iterator> | ||
#include <latch> | ||
#include <limits> | ||
#include <locale> | ||
#include <map> | ||
#include <memory> | ||
#include <memory_resource> | ||
#include <mutex> | ||
#include <new> | ||
#include <numbers> | ||
#include <numeric> | ||
#include <optional> | ||
#include <ostream> | ||
#include <queue> | ||
#include <random> | ||
#include <ranges> | ||
#include <ratio> | ||
#include <regex> | ||
#include <scoped_allocator> | ||
#include <semaphore> | ||
#include <set> | ||
#include <shared_mutex> | ||
#include <source_location> | ||
#include <span> | ||
#include <sstream> | ||
#include <stack> | ||
#include <stdexcept> | ||
#include <streambuf> | ||
#include <string> | ||
#include <string_view> | ||
#include <syncstream> | ||
#include <system_error> | ||
#include <thread> | ||
#include <tuple> | ||
#include <type_traits> | ||
#include <typeindex> | ||
#include <typeinfo> | ||
#include <unordered_map> | ||
#include <unordered_set> | ||
#include <utility> | ||
#include <valarray> | ||
#include <variant> | ||
#include <vector> | ||
#include <version> | ||
|
||
// Clib | ||
#include "F4SE/F4SE.h" | ||
#include "RE/Fallout.h" | ||
|
||
// winnt | ||
#include <ShlObj_core.h> | ||
|
||
#undef min | ||
#undef max | ||
#undef GetComputerName | ||
#undef GetForm | ||
#include "REX/REX/INI.h" | ||
|
||
using namespace std::literals; | ||
|
||
#define DLLEXPORT extern "C" [[maybe_unused]] __declspec(dllexport) | ||
|
||
// Plugin | ||
#include "Plugin.h" | ||
|
||
// DKUtil | ||
#include "DKUtil/Config.hpp" | ||
#include "DKUtil/Hook.hpp" | ||
#include "DKUtil/Logger.hpp" | ||
|
||
// Config | ||
#include "Config/Config.h" | ||
|
||
// Extras | ||
#include <fmt/chrono.h> | ||
|
||
// F4SEPlugin_Version | ||
DLLEXPORT constinit auto F4SEPlugin_Version = []() noexcept | ||
{ | ||
F4SE::PluginVersionData data{}; | ||
|
||
data.PluginVersion(Plugin::Version); | ||
data.PluginName(Plugin::NAME); | ||
data.AuthorName(Plugin::AUTHOR); | ||
data.UsesAddressLibrary(true); | ||
data.UsesSigScanning(false); | ||
data.IsLayoutDependent(true); | ||
data.HasNoStructUse(false); | ||
data.CompatibleVersions({ F4SE::RUNTIME_LATEST }); | ||
|
||
return data; | ||
}(); |
Oops, something went wrong.