Skip to content

Commit ae7284c

Browse files
committed
Skip map build checks
1 parent a0b2150 commit ae7284c

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

‎source/cache/cache_files.c‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -585,6 +585,9 @@ boolean cache_file_header_verify(
585585
return FALSE;
586586
}
587587

588+
#ifndef HALO_LINUX
589+
/* (the native builds try a cache file whatever build made it, NTSC's
590+
01.10.12.2276 included) */
588591
if (csstrcmp(header->build, "01.01.14.2342"))
589592
{
590593
if (fatal)
@@ -602,6 +605,7 @@ boolean cache_file_header_verify(
602605

603606
return FALSE;
604607
}
608+
#endif
605609

606610
return TRUE;
607611
}

‎source/cache/cache_files_windows.c‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1020,10 +1020,14 @@ static void cache_files_open_cache_files(
10201020
char *cache_map_name = cached_map_file_get(map_file_index)->header.name;
10211021

10221022
cached_map_file_read_header(map_file_index);
1023+
#ifndef HALO_LINUX
1024+
/* (the native builds keep a copied map whatever build made it;
1025+
the checksum below still has to match the original's) */
10231026
if (strcmp(map_file->header.build, CACHE_FILE_BUILD_STRING) != 0)
10241027
{
10251028
valid = FALSE;
10261029
}
1030+
#endif
10271031
if (cache_file_read_header_from_dvd(cache_map_name, &dvd_header) &&
10281032
map_file->header.checksum == dvd_header.checksum &&
10291033
valid)

0 commit comments

Comments
 (0)