warning when compiled without profiling when attempting to enable

This commit is contained in:
2025-07-18 06:31:11 -05:00
parent 7bfd244bf2
commit f49d4180ed
2 changed files with 3 additions and 62 deletions

View File

@@ -933,6 +933,9 @@ int main(int argc, char **argv)
/* Check for --profile flag */
if (argc > 1 && strcmp(argv[1], "--profile") == 0) {
profile_enabled = 1; script_start = 2;
#ifndef TRACY_ENABLE
printf("Warning: --profile flag was specified but Tracy profiling is not compiled in\n");
#endif
}
if (!SDL_Init(SDL_INIT_EVENTS | SDL_INIT_GAMEPAD)) {