further cleanup + implement value access with section name

This commit is contained in:
2025-02-01 20:09:15 +01:00
parent 927510c97f
commit 29dfc94c88
4 changed files with 96 additions and 83 deletions

View File

@@ -1,5 +1,5 @@
#define MINIPP_IMPLEMENTATION
#include "minipp/minipp.hpp"
#include "minipp.hpp"
using namespace minipp;
@@ -37,9 +37,10 @@ int main()
MiniPPFile::Values::ArrayValue* targetsValue = nullptr;
result = windowPlatformSection->GetValue("targets", &targetsValue);
MiniPPFile::Values::ArrayValue* pointsValue = nullptr;
result = windowPlatformSection->GetValue("points", &pointsValue);
//result = windowPlatformSection->GetValue("points", &pointsValue);
result = root.GetValue("game.window.platform.points", &pointsValue);
file.Write("test_out.mini");
result = file.Write("test_out.mini");
return 0;
}