mirror of
https://github.com/antopilo/Nuake.git
synced 2026-01-01 05:48:14 +03:00
Dumping bindings.json on load
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
#include "Nuake/Threading/JobSystem.h"
|
||||
#include "Nuake/Core/RegisterCoreTypes.h"
|
||||
#include "Nuake/Modules/Modules.h"
|
||||
#include "Nuake/Modules/ModuleDB.h"
|
||||
#include "Nuake/Subsystems/EngineSubsystemScriptable.h"
|
||||
|
||||
#include <GLFW/glfw3.h>
|
||||
@@ -71,6 +72,14 @@ namespace Nuake
|
||||
|
||||
Modules::StartupModules();
|
||||
|
||||
// Writting bindings.json
|
||||
|
||||
Logger::Log("Exporting bindings.json", "modules", VERBOSE);
|
||||
auto api = ModuleDB::Get().GenerateModuleAPI();
|
||||
FileSystem::BeginWriteFile("bindings.json", true);
|
||||
FileSystem::WriteLine(api.dump(4));
|
||||
FileSystem::EndWriteFile();
|
||||
|
||||
InitializeCoreSubsystems();
|
||||
|
||||
// Init base resolvers
|
||||
|
||||
Reference in New Issue
Block a user