Massively improved Makefile, with DBG and release options; engine outputs engine version to root directory of game on startup

This commit is contained in:
2022-11-24 16:58:36 +00:00
parent 5946a08a79
commit ac0ad8efc2
2 changed files with 40 additions and 44 deletions

View File

@@ -72,6 +72,12 @@ int main(int argc, char **args) {
exit(1);
}
case 'v':
printf("Yugine version %s, %s build.\n", VER, INFO);
printf("Copyright 2022 odplot productions LLC.\n");
exit(1);
break;
}
}
}
@@ -96,6 +102,11 @@ int main(int argc, char **args) {
pclose(sysinfo);
}
FILE *gameinfo = NULL;
gameinfo = fopen("game.info", "w");
fprintf(gameinfo, "Yugine v. %s, sys %s.", VER, INFO);
fclose(gameinfo);
engine_init();