Skip to content

Commit

Permalink
Update to v1.0.9b (Tanooki16)
Browse files Browse the repository at this point in the history
- Fixed SuperFX overclock issues (thanks InfiniteBlueGX)
  • Loading branch information
saulfabregwiivc committed May 19, 2022
1 parent 7608072 commit 0621ba8
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 12 deletions.
5 changes: 5 additions & 0 deletions README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ Snes9x TX is a fork of Snes9x GX: https://github.com/dborth/snes9xgx
Update History
--------------

---Snes9x TX 1.0.9b---
---May 19 2022---

- Fixed SuperFX overclock issues (thanks InfiniteBlueGX)

---Snes9x TX 1.0.9---
---May 17 2022---

Expand Down
2 changes: 1 addition & 1 deletion hbc/meta.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<name>Snes9x TX</name>
<coder>Tanooki</coder>
<version>1.0.9</version>
<release_date>20220517</release_date>
<release_date>20220519</release_date>
<short_description>Super Nintendo Emulator</short_description>
<long_description>Snes9x TX is a fork of Snes9x GX on Wii.</long_description>
<ahb_access />
Expand Down
28 changes: 17 additions & 11 deletions source/snes9xtx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ int ExitRequested = 0;
bool isWiiVC = false;
char appPath[1024] = { 0 };
static int currentMode;
bool firstRun = true;

extern "C" {
#ifdef USE_VM
Expand Down Expand Up @@ -489,28 +490,33 @@ int main(int argc, char *argv[])
#ifdef HW_RVL
SelectFilterMethod();
#endif
switch (GCSettings.sfxOverclock)
if (firstRun)
{
case 0: Settings.SuperFXSpeedPerLine = 5823405; break;
case 1: Settings.SuperFXSpeedPerLine = 0.417 * 20.5e6; break;
case 2: Settings.SuperFXSpeedPerLine = 0.417 * 40.5e6; break;
case 3: Settings.SuperFXSpeedPerLine = 0.417 * 60.5e6; break;
}
firstRun = false;
switch (GCSettings.sfxOverclock)
{
case 0: Settings.SuperFXSpeedPerLine = 5823405; break;
case 1: Settings.SuperFXSpeedPerLine = 0.417 * 20.5e6; break;
case 2: Settings.SuperFXSpeedPerLine = 0.417 * 40.5e6; break;
case 3: Settings.SuperFXSpeedPerLine = 0.417 * 60.5e6; break;
}

if (GCSettings.sfxOverclock > 0)
if (GCSettings.sfxOverclock > 0)
{
S9xResetSuperFX();
else
S9xReset();
}

switch (GCSettings.Interpolation)
{
switch (GCSettings.Interpolation)
{
case 0: Settings.InterpolationMethod = DSP_INTERPOLATION_GAUSSIAN; break;
case 1: Settings.InterpolationMethod = DSP_INTERPOLATION_LINEAR; break;
case 2: Settings.InterpolationMethod = DSP_INTERPOLATION_CUBIC; break;
case 3: Settings.InterpolationMethod = DSP_INTERPOLATION_SINC; break;
case 4: Settings.InterpolationMethod = DSP_INTERPOLATION_NONE; break;
}
}

autoboot = false;
ConfigRequested = 0;
ScreenshotRequested = 0;
Expand Down

0 comments on commit 0621ba8

Please sign in to comment.