Sonic Classic Collection special fix

This commit is contained in:
R-YaTian 2022-02-18 18:08:07 +08:00 committed by GitHub
parent 8c5e5fd71a
commit 4d159b9273
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -139,11 +139,11 @@ namespace Tinke.Nitro
temp = BitConverter.GetBytes(offset); temp = BitConverter.GetBytes(offset);
Array.Copy(temp, 0, buffer, sortedIDs[i] * 8 + 4, 4); Array.Copy(temp, 0, buffer, sortedIDs[i] * 8 + 4, 4);
//Sonic Classic Collection special fix //Sonic Classic Collection special fix
if (string.Equals(game_code, "VSOE") && string.Equals(currFile.name, "title.wav")) if ((string.Equals(game_code, "VSOE") || string.Equals(game_code, "VSOV")) && string.Equals(currFile.name, "title.wav"))
{ {
offset += 0x6C5278; offset += 0x6C5278;
} }
else if (string.Equals(game_code, "VSOE") && string.Equals(currFile.name, "Game.pak")) else if ((string.Equals(game_code, "VSOE") || string.Equals(game_code, "VSOV")) && string.Equals(currFile.name, "Game.pak"))
{ {
offset += 0xD9F0; offset += 0xD9F0;
} }

View File

@ -641,7 +641,7 @@ namespace Tinke.Nitro
int rem = (int)bw.BaseStream.Position % 0x200; int rem = (int)bw.BaseStream.Position % 0x200;
//Sonic Classic Collection special fix //Sonic Classic Collection special fix
string game_code = new string(cabecera.gameCode).Replace("\0", ""); string game_code = new string(cabecera.gameCode).Replace("\0", "");
if (string.Equals(game_code, "VSOE") && string.Equals(currFile.name, "title.wav")) if ((string.Equals(game_code, "VSOE") || string.Equals(game_code, "VSOV")) && string.Equals(currFile.name, "title.wav"))
{ {
rem = 0x6C5278; rem = 0x6C5278;
while (rem > 0) while (rem > 0)
@ -650,7 +650,7 @@ namespace Tinke.Nitro
rem--; rem--;
} }
} }
else if (string.Equals(game_code, "VSOE") && string.Equals(currFile.name, "Game.pak")) else if ((string.Equals(game_code, "VSOE") || string.Equals(game_code, "VSOV")) && string.Equals(currFile.name, "Game.pak"))
{ {
rem = 0xD9F0; rem = 0xD9F0;
while (rem > 0) while (rem > 0)