Files
dusklight/libs/dolphin/dvd/dvdidutils.c
T
TakaRikka 8b4808da8a almost all of dolphin matched (#2036)
* TRK full match

* remove trk asm

* ar done

* cleanup some dolphin headers

* more dolphin cleanup

* cleanup / GD fully matched

* almost all of GX fully matched

* GX / Mtx full matched

* most of OS done

* pad done

* most of VI

* remove asm

* forgot couple vec funcs

* couple JUtility matches
2024-01-20 02:22:19 +02:00

27 lines
776 B
C

#include "dolphin/dvd/dvdidutils.h"
#include "dolphin/dvd.h"
/* 8034BC04-8034BCFC 346544 00F8+00 0/0 1/1 0/0 .text DVDCompareDiskID */
BOOL DVDCompareDiskID(DVDDiskID* id1, DVDDiskID* id2) {
if (id1->game_name[0] && id2->game_name[0] &&
strncmp(&id1->game_name[0], &id2->game_name[0], 4)) {
return FALSE;
}
if (!id1->company[0] || !id2->company[0] || strncmp(&id1->company[0], &id2->company[0], 2)) {
return FALSE;
}
if (id1->disk_number != 0xff && id2->disk_number != 0xff &&
id1->disk_number != id2->disk_number) {
return FALSE;
}
if (id1->game_version != 0xff && id2->game_version != 0xff &&
id1->game_version != id2->game_version) {
return FALSE;
}
return TRUE;
}