diff options
Diffstat (limited to 'src/main.c')
| -rw-r--r-- | src/main.c | 17 |
1 files changed, 16 insertions, 1 deletions
@@ -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; } |
