Skip to content

Commit

Permalink
Fix carmageddon detection + fix linux build
Browse files Browse the repository at this point in the history
  • Loading branch information
madebr committed Mar 21, 2022
1 parent 8d904db commit 7d57b73
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
7 changes: 5 additions & 2 deletions src/harness/harness.c
Original file line number Diff line number Diff line change
Expand Up @@ -103,12 +103,12 @@ void Harness_DetectGameMode() {
}
} else if (access("DATA/RACES/CITYB3.TXT", F_OK) != -1) {
// All non-splatpack edition have the cityb3 track
if (access("DATA/CITYA1.TXT", F_OK) == -1) {
if (access("DATA/RACES/CITYA1.TXT", F_OK) == -1) {
// The demo does not have the citya1 track
harness_game_info.defines.INTRO_SMK_FILE = "";
harness_game_info.defines.GERMAN_LOADSCRN = "COWLESS.PIX";
harness_game_info.mode = eGame_carmageddon_demo;
LOG_INFO("\"%s\"", "Carmageddon");
LOG_INFO("\"%s\"", "Carmageddon demo");
}
else {
goto carmageddon;
Expand Down Expand Up @@ -140,6 +140,9 @@ void Harness_DetectGameMode() {
fclose(f);
if (strstr(buffer, "NEUES SPIEL") != NULL) {
harness_game_info.localization = eGameLocalization_german;
LOG_INFO("Language: \"%s\"", "German");
} else {
LOG_INFO("Language: unrecognized");
}
free(buffer);
}
Expand Down
1 change: 0 additions & 1 deletion src/harness/os/linux.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>
#include <sys/sysctl.h>
#include <sys/types.h>
#include <time.h>
#include <unistd.h>
Expand Down

0 comments on commit 7d57b73

Please sign in to comment.