Skip to content

Commit

Permalink
samsptk: use cheat instead of extra depth scale
Browse files Browse the repository at this point in the history
Use a cheat to fix the game bug instead of dealing with ginormous depth
values.
  • Loading branch information
flyinghead committed Feb 7, 2024
1 parent d9d9138 commit 434083c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
6 changes: 6 additions & 0 deletions core/cheats.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -505,6 +505,12 @@ void CheatManager::reset(const std::string& gameId)
cheats.emplace_back(Cheat::Type::setValue, "increase datapump timeout", true, 16, 0x00135588, 1000);
cheats.back().builtIn = true;
}
else if (gameId == "SAMURAI SPIRITS 6" || gameId == "T0002M")
{
setActive(true);
cheats.emplace_back(Cheat::Type::setValue, "fix depth", true, 16, 0x0003e602, 0x0009); // nop (shift by 8 bits instead of 10)
cheats.back().builtIn = true;
}
}
if (config::WidescreenGameHacks)
{
Expand Down
11 changes: 0 additions & 11 deletions core/emulator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -157,12 +157,6 @@ static void loadSpecialSettings()
INFO_LOG(BOOT, "Enabling Extra depth scaling for game %s", prod_id.c_str());
config::ExtraDepthScale.override(100.f);
}
// Samurai Shodown 6 dc port
else if (prod_id == "T0002M")
{
INFO_LOG(BOOT, "Enabling Extra depth scaling for game %s", prod_id.c_str());
config::ExtraDepthScale.override(1e26f);
}
// Test Drive V-Rally
else if (prod_id == "T15110N" || prod_id == "T15105D 50")
{
Expand Down Expand Up @@ -297,11 +291,6 @@ static void loadSpecialSettings()
}
else if (settings.platform.isArcade())
{
if (prod_id == "SAMURAI SPIRITS 6")
{
INFO_LOG(BOOT, "Enabling Extra depth scaling for game %s", prod_id.c_str());
config::ExtraDepthScale.override(1e26f);
}
if (prod_id == "COSMIC SMASH IN JAPAN")
{
INFO_LOG(BOOT, "Enabling translucent depth multipass for game %s", prod_id.c_str());
Expand Down

0 comments on commit 434083c

Please sign in to comment.