Fix lindbergh util and add HOTD4RevCTest
This commit is contained in:
parent
95bc966da3
commit
e8ec0f072d
@ -61,6 +61,12 @@ static int detectGame(uint32_t elf_crc)
|
||||
return 0;
|
||||
}
|
||||
|
||||
if(elf_crc == 0xDDECE1E9) {
|
||||
config.game = THE_HOUSE_OF_THE_DEAD_4_STRIPPED_TEST;
|
||||
config.gameStatus = WORKING;
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (elf_crc == 0x7235bda8)
|
||||
{
|
||||
config.game = THE_HOUSE_OF_THE_DEAD_4_TEST;
|
||||
@ -313,6 +319,8 @@ char *getGameName()
|
||||
return "Virtua Tennis 3 Test Mode";
|
||||
case THE_HOUSE_OF_THE_DEAD_4_STRIPPED:
|
||||
return "The House of the Dead 4 Rev C";
|
||||
case THE_HOUSE_OF_THE_DEAD_4_STRIPPED_TEST:
|
||||
return "The House of the Dead 4 Rev C Test Mode";
|
||||
case INITIALD_4_REVE:
|
||||
return "Initial D 4 Exp Rev E";
|
||||
default:
|
||||
|
@ -34,6 +34,7 @@ typedef enum
|
||||
SEGA_RACE_TV,
|
||||
THE_HOUSE_OF_THE_DEAD_4,
|
||||
THE_HOUSE_OF_THE_DEAD_4_STRIPPED,
|
||||
THE_HOUSE_OF_THE_DEAD_4_STRIPPED_TEST,
|
||||
THE_HOUSE_OF_THE_DEAD_4_SPECIAL,
|
||||
THE_HOUSE_OF_THE_DEAD_4_SPECIAL_TEST,
|
||||
THE_HOUSE_OF_THE_DEAD_4_TEST,
|
||||
|
@ -146,32 +146,58 @@ int main(int argc, char *argv[])
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
|
||||
// Build up the command to start the game
|
||||
|
||||
int testMode = 0;
|
||||
int gdb = 0;
|
||||
int forceGame = 0;
|
||||
|
||||
char forceGamePath[128] = {0};
|
||||
for (int i = 1; i < argc; i++)
|
||||
{
|
||||
if (strcmp(argv[i], "-t") == 0 || strcmp(argv[i], "--test") == 0)
|
||||
{
|
||||
testMode = 1;
|
||||
continue;
|
||||
}
|
||||
|
||||
if (strcmp(argv[i], "--gdb") == 0)
|
||||
{
|
||||
gdb = 1;
|
||||
continue;
|
||||
}
|
||||
|
||||
// Treat the argument as the game name
|
||||
strcpy(forceGamePath, argv[i]);
|
||||
forceGame = 1;
|
||||
}
|
||||
|
||||
char command[128] = {0};
|
||||
strcpy(command, "./");
|
||||
if (forceGame)
|
||||
{
|
||||
strcat(command, forceGamePath);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (game == NULL)
|
||||
{
|
||||
printf("Error: No lindbergh game found in this directory.\n");
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
|
||||
// Build up the command to start the game
|
||||
char command[128];
|
||||
strcpy(command, "./");
|
||||
strcat(command, game);
|
||||
|
||||
for (int i = 1; i < argc; i++)
|
||||
{
|
||||
if (strcmp(argv[i], "-t") == 0 || strcmp(argv[i], "--test") == 0)
|
||||
{
|
||||
testModePath(command);
|
||||
}
|
||||
|
||||
if (strcmp(argv[i], "--gdb") == 0)
|
||||
if (testMode)
|
||||
testModePath(command);
|
||||
|
||||
if (gdb)
|
||||
{
|
||||
char temp[128];
|
||||
strcpy(temp, "gdb ");
|
||||
strcat(temp, command);
|
||||
strcpy(command, temp);
|
||||
}
|
||||
}
|
||||
|
||||
printf("$ %s\n", command);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user