From 51797fd546a834d730e07837de6034166a31c6d6 Mon Sep 17 00:00:00 2001 From: Jack Punter Date: Mon, 29 Jan 2024 19:30:09 +0000 Subject: [PATCH 1/2] Fix v2 project generation --- code/custom/4coder_project_commands.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/code/custom/4coder_project_commands.cpp b/code/custom/4coder_project_commands.cpp index 9f736d8d..045f8e51 100644 --- a/code/custom/4coder_project_commands.cpp +++ b/code/custom/4coder_project_commands.cpp @@ -476,7 +476,7 @@ prj_generate_project(Arena *scratch, String8 script_path, String8 script_file, S fprintf(out, "\".*\",\n"); fprintf(out, "};\n"); fprintf(out, "load_paths_base = {\n"); - fprintf(out, " { \".\", .relative = true, .recursive = true, },\n"); + fprintf(out, " { .path = \".\", .relative = true, .recursive = true, },\n"); fprintf(out, "};\n"); fprintf(out, "load_paths = {\n"); fprintf(out, " .win = load_paths_base,\n"); @@ -498,8 +498,8 @@ prj_generate_project(Arena *scratch, String8 script_path, String8 script_file, S fprintf(out, "};\n"); fprintf(out, "fkey_command = {\n"); - fprintf(out, ".F1 = \"run\";\n"); - fprintf(out, ".F2 = \"run\";\n"); + fprintf(out, ".F1 = \"run\",\n"); + fprintf(out, ".F2 = \"run\",\n"); fprintf(out, "};\n"); fclose(out); From 6617beb487ec60dba362b15837ac002dd9d39483 Mon Sep 17 00:00:00 2001 From: Jack Punter Date: Mon, 29 Jan 2024 19:37:32 +0000 Subject: [PATCH 2/2] Provide both build and run by default --- code/custom/4coder_project_commands.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/custom/4coder_project_commands.cpp b/code/custom/4coder_project_commands.cpp index 045f8e51..4e2f7818 100644 --- a/code/custom/4coder_project_commands.cpp +++ b/code/custom/4coder_project_commands.cpp @@ -498,7 +498,7 @@ prj_generate_project(Arena *scratch, String8 script_path, String8 script_file, S fprintf(out, "};\n"); fprintf(out, "fkey_command = {\n"); - fprintf(out, ".F1 = \"run\",\n"); + fprintf(out, ".F1 = \"build\",\n"); fprintf(out, ".F2 = \"run\",\n"); fprintf(out, "};\n");