From d1a1ebd54cabc6646f20f6b1b341751a2bf3c2ec Mon Sep 17 00:00:00 2001 From: Physick <96335032+DegustatorPonos@users.noreply.github.com> Date: Sun, 2 Aug 2026 22:52:27 +0500 Subject: puzzle parser --- src/main.c | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index e83454e..9ccb20e 100644 --- a/src/main.c +++ b/src/main.c @@ -5,6 +5,21 @@ int main(void) { + Puzzle *puzzle = ReadPuzzleFromFile("puzzles/test.pz"); + + // printf("Puzzle name: %s\n", puzzle->Name); + // printf("Puzzle description: %s\n", puzzle->Description); + // printf("Puzzle code: %s\n", puzzle->InitialCode); + // printf("Puzzle TestC: %zu\n", puzzle->TestC); + + // for (int i = 0; i < puzzle->TestC; i++) { + // Test t = puzzle->Tests[i]; + // printf("\n"); + // printf("\tTest rec: %s\n", t.RecieverName); + // printf("\tTest sig: %s\n", t.MainMethodSignature); + // printf("\tTest argc: %zu\n", t.argc); + // } + if (!ReadConfig(DEFAULT_CONFIG_LOCATION)) { return 1; } @@ -19,7 +34,7 @@ int main(void) { return 1; } - if (!AddScene(CreatePuzzleScene(GetTestPuzzle()))) { + if (!AddScene(CreatePuzzleScene(puzzle))) { printf("Failed to create a puzzle menu\n"); return 1; } -- cgit v1.3