1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-07-04 10:03:36 +00:00

GBI: fix .NoN detection

This commit is contained in:
Sergey Lipskiy 2014-11-04 21:45:55 +06:00
parent 7a16fafedb
commit 9510513f17

View File

@ -227,7 +227,7 @@ void GBIInfo::loadMicrocode(u32 uc_start, u32 uc_dstart, u16 uc_dsize)
if (strncmp( &uc_str[4], "SW", 2 ) == 0)
type = F3D;
else if (strncmp( &uc_str[4], "Gfx", 3 ) == 0) {
current.NoN = (strncmp( &uc_str[20], ".NoN", 4 ) == 0);
current.NoN = (strstr( uc_str + 4, ".NoN") != NULL);
if (strncmp( &uc_str[14], "F3D", 3 ) == 0) {
if (uc_str[28] == '1' || strncmp(&uc_str[28], "0.95", 4) == 0 || strncmp(&uc_str[28], "0.96", 4) == 0)