summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c17
1 files changed, 16 insertions, 1 deletions
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;
}