jag

snake_c

public

Small snake game in C

Star0
Watch0

Commit fdb0d76ba5f4

tarball

Jaglekon <58274093+Jaglekon@users.noreply.github.com>2026-03-31 21:14 UTC

1 file changed+7-1
no XDG_DATA_HOME fix ver 5
Modified file: snake.c+7 additions−1 deletions
@@ -46,12 +46,18 @@ int main(int argc, char *args[]) {
4646
4747 if (
4848 !make_folder(file_path, ".local", true) ||
49+ ) {
50+ printf("Couldn't create folder\n");
51+ return 1;
52+ }
53+
54+ if (
4955 !make_folder(file_path, "share", true)
5056 ) {
5157 printf("Couldn't create folder\n");
5258 return 1;
5359 }
54-
60+
5561 make_folder(file_path, SETTING_FILE , false);
5662
5763 } else {