Fix src code generation.

This patch remooves the new line before the string ends, it also makes
the default code actually work (no longer tries to be Wordle).

Signed-off-by: xSlendiX <slendi@socopon.com>
This commit is contained in:
xSlendiX 2022-12-18 11:20:39 +02:00
parent c93f7a254d
commit f6e8b0f73c

12
main.c
View File

@ -715,12 +715,12 @@ Main;\n", fp);
fp = fopen(text_format("%s/Install.HC", src_dir), "w+"); fp = fopen(text_format("%s/Install.HC", src_dir), "w+");
fputs("// TODO: Add support for multiple partitions, not just C:\n\ fputs("// TODO: Add support for multiple partitions, not just C:\n\
if (!FileFind(\"C:/Apps/Main\",,FUF_JUST_DIRS)) {\n\ if (!FileFind(\"C:/Apps/Main\",,FUF_JUST_DIRS)) {\n\
\"Installing...\n\";\n\ \"Installing...\\n\";\n\
DirMk(\"C:/Apps/Wordle\");\n\ DirMk(\"C:/Apps/Main\");\n\
} else \"Updating...\n\";\n\ } else \"Updating...\\n\";\n\
CopyTree(\"T:/\", \"C:/Apps/Wordle\");\n\ CopyTree(\"T:/\", \"C:/Apps/Main\");\n\
Del(\"C:/Apps/Wordle/RunCD.*\");\n\ Del(\"C:/Apps/Main/RunCD.*\");\n\
\"Done!\n\";\n", fp); \"Done!\\n\";\n", fp);
fclose(fp); fclose(fp);
} }