Skip to content

Commit

Permalink
Update to 1.0.8 (Tanooki16)
Browse files Browse the repository at this point in the history
  • Loading branch information
saulfabregwiivc committed Nov 13, 2021
1 parent 35cbea6 commit 57f9321
Show file tree
Hide file tree
Showing 104 changed files with 271 additions and 565 deletions.
19 changes: 17 additions & 2 deletions README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,29 @@ Snes9x TX is based on original Snes9x GX: https://github.com/dborth/snes9xgx
Update History
--------------

---Snes9x TX 1.0.8---
---September 1 2021---

- Updated to the latest Snes9x GX (git 5bff07b)
- Added 128 KB SRAM support in sram
- Reorganized menu video settings
- Removed all old crosshairs (not used by Snes9x TX)
- Added custom crosshairs for Super Scope/Justifier
- Fixed not working option to disable crosshair
- Removed rumble function from menu (your batteries will last longer)
- Updated UI PNG images
- Compiled with latest devkitPPC/libogc
- Updated Forwarder Channel (1.3)

---Snes9x TX 1.0.7---
---April 22 2021---

- Changed Filtering setting name to CRT Filter with On/Off option
- Replaced Scanlines filter per CRT filter (lighter scanlines that do not darken image)
- Replaced Scanlines filter by CRT filter (lighter scanlines that do not darken image)
- Removed hq2x filters (these filters take too many resources for Wii)
- Removed Soft and Sharp video filtering (not work with Snes9x GX)
- Removed "Auto" of name of saves and option to activate/disable it
- Removed "Auto" of name of saves and option to enable/disable it
- Updated Forwarder Channel (1.2)

---Snes9x TX 1.0.6---
---March 25 2021---
Expand Down
Binary file modified hbc/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions hbc/meta.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
<app version="1">
<name>Snes9x TX</name>
<coder>Tanooki</coder>
<version>1.0.7</version>
<release_date>20210422</release_date>
<version>1.0.8</version>
<release_date>20210901</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
2 changes: 1 addition & 1 deletion source/fileop.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -742,7 +742,7 @@ LoadSzFile(char * filepath, unsigned char * rbuffer)
HaltParseThread();

file = fopen (filepath, "rb");
if (file > 0)
if (file)
{
size = SzExtractFile(browserList[browser.selIndex].filenum, rbuffer);
fclose (file);
Expand Down
10 changes: 5 additions & 5 deletions source/filter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,15 @@ static uint16 RGBtoBright[1<<NUMBITS];

TFilterMethod FilterMethod;

template<int GuiScale> void CRT (uint8 *srcPtr, uint32 srcPitch, uint8 *dstPtr, uint32 dstPitch, int width, int height);
template<int GuiScale> void Scanlines (uint8 *srcPtr, uint32 srcPitch, uint8 *dstPtr, uint32 dstPitch, int width, int height);

const char* GetFilterName (RenderFilter filterID)
{
switch(filterID)
{
default: return "Unknown";
case FILTER_NONE: return "Off";
case FILTER_CRT: return "On";
case FILTER_SCANLINES: return "On";
}
}

Expand All @@ -49,7 +49,7 @@ static TFilterMethod FilterToMethod (RenderFilter filterID)
{
switch(filterID)
{
case FILTER_CRT: return CRT<FILTER_CRT>;
case FILTER_SCANLINES: return Scanlines<FILTER_SCANLINES>;
default: return 0;
}
}
Expand All @@ -61,7 +61,7 @@ int GetFilterScale(RenderFilter filterID)
case FILTER_NONE:
return 1;
default:
case FILTER_CRT:
case FILTER_SCANLINES:
return 2;
}
}
Expand Down Expand Up @@ -361,7 +361,7 @@ void InitLUTs(void)
case 255: if (Diff(RGBtoYUVtable[w4], RGBtoYUVtable[w2])) PIXEL00_0; else PIXEL00_100; if (Diff(RGBtoYUVtable[w2], RGBtoYUVtable[w6])) PIXEL01_0; else PIXEL01_100; if (Diff(RGBtoYUVtable[w8], RGBtoYUVtable[w4])) PIXEL10_0; else PIXEL10_100; if (Diff(RGBtoYUVtable[w6], RGBtoYUVtable[w8])) PIXEL11_0; else PIXEL11_100; break;

template<int GuiScale>
void CRT (uint8 *srcPtr, uint32 srcPitch, uint8 *dstPtr, uint32 dstPitch, int width, int height)
void Scanlines (uint8 *srcPtr, uint32 srcPitch, uint8 *dstPtr, uint32 dstPitch, int width, int height)
{
unsigned int nextlineSrc = srcPitch / sizeof(uint16);
uint16 *p = (uint16 *)srcPtr;
Expand Down
2 changes: 1 addition & 1 deletion source/filter.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
enum RenderFilter{
FILTER_NONE = 0,

FILTER_CRT,
FILTER_SCANLINES,

NUM_FILTERS
};
Expand Down
7 changes: 0 additions & 7 deletions source/gui/gui.h
Original file line number Diff line number Diff line change
Expand Up @@ -367,12 +367,6 @@ class GuiElement
//!\param i Index of trigger array to set
//!\param t Pointer to GuiTrigger
void SetTrigger(u8 i, GuiTrigger * t);
//!Checks whether rumble was requested by the element
//!\return true is rumble was requested, false otherwise
bool Rumble();
//!Sets whether or not the element is requesting a rumble event
//!\param r true if requesting rumble, false if not
void SetRumble(bool r);
//!Set an effect for the element
//!\param e Effect to enable
//!\param a Amount of the effect (usage varies on effect)
Expand Down Expand Up @@ -468,7 +462,6 @@ class GuiElement
bool clickable; //!< Whether or not this element is clickable (can change to CLICKED state)
bool holdable; //!< Whether or not this element is holdable (can change to HELD state)
bool visible; //!< Visibility of the element. If false, Draw() is skipped
bool rumble; //!< Wiimote rumble (on/off) - set to on when this element requests a rumble event
};

//!Allows GuiElements to be grouped together into a "window"
Expand Down
3 changes: 0 additions & 3 deletions source/gui/gui_button.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -220,9 +220,6 @@ void GuiButton::Update(GuiTrigger * t)
{
this->SetState(STATE_SELECTED, t->chan);

if(this->Rumble())
rumbleRequest[t->chan] = 1;

if(soundOver)
soundOver->Play();

Expand Down
11 changes: 0 additions & 11 deletions source/gui/gui_element.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ GuiElement::GuiElement()
trigger[1] = NULL;
trigger[2] = NULL;
parentElement = NULL;
rumble = true;
selectable = false;
clickable = false;
holdable = false;
Expand Down Expand Up @@ -371,16 +370,6 @@ void GuiElement::SetTrigger(u8 i, GuiTrigger * t)
trigger[i] = t;
}

bool GuiElement::Rumble()
{
return rumble;
}

void GuiElement::SetRumble(bool r)
{
rumble = r;
}

int GuiElement::GetEffect()
{
return effects;
Expand Down
Binary file modified source/images/bg_game_selection.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified source/images/bg_game_selection_entry.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified source/images/bg_options.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified source/images/bg_options_entry.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified source/images/bg_preview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified source/images/button.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified source/images/button_arrow_down.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified source/images/button_arrow_down_over.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified source/images/button_arrow_left.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified source/images/button_arrow_left_over.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified source/images/button_arrow_right.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified source/images/button_arrow_right_over.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified source/images/button_arrow_up.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified source/images/button_arrow_up_over.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified source/images/button_gamesave.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified source/images/button_gamesave_blank.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified source/images/button_gamesave_over.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified source/images/button_large.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified source/images/button_large_over.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified source/images/button_long.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified source/images/button_long_over.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified source/images/button_over.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified source/images/button_prompt.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified source/images/button_prompt_over.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified source/images/button_short.png
Binary file modified source/images/button_short_over.png
Binary file modified source/images/button_small.png
Binary file modified source/images/button_small_over.png
Binary file modified source/images/credits_box.png
Binary file modified source/images/dialogue_box.png
Binary file modified source/images/icon_game_cheats.png
Binary file modified source/images/icon_game_controllers.png
Binary file modified source/images/icon_game_delete.png
Binary file modified source/images/icon_game_load.png
Binary file modified source/images/icon_game_reset.png
Binary file modified source/images/icon_game_save.png
Binary file modified source/images/icon_game_settings.png
Binary file modified source/images/icon_settings_audio.png
Binary file modified source/images/icon_settings_file.png
Binary file modified source/images/icon_settings_justifier.png
Binary file modified source/images/icon_settings_menu.png
Binary file modified source/images/icon_settings_screenshot.png
Binary file modified source/images/icon_settings_video.png
Binary file modified source/images/keyboard_key.png
Binary file modified source/images/keyboard_key_over.png
Binary file modified source/images/keyboard_largekey.png
Binary file modified source/images/keyboard_largekey_over.png
Binary file modified source/images/keyboard_mediumkey.png
Binary file modified source/images/keyboard_mediumkey_over.png
Binary file modified source/images/keyboard_textbox.png
Binary file modified source/images/logo.png
Binary file modified source/images/logo_over.png
Binary file modified source/images/player1_grab.png
Binary file modified source/images/player1_point.png
Binary file modified source/images/player2_grab.png
Binary file modified source/images/player2_point.png
Binary file modified source/images/player3_grab.png
Binary file modified source/images/player3_point.png
Binary file modified source/images/player4_grab.png
Binary file modified source/images/player4_point.png
Binary file modified source/images/progressbar_outline.png
Binary file modified source/images/screen_position.png
Binary file modified source/images/scrollbar.png
Binary file modified source/images/scrollbar_arrowdown.png
Binary file modified source/images/scrollbar_arrowdown_over.png
Binary file modified source/images/scrollbar_arrowup.png
Binary file modified source/images/scrollbar_arrowup_over.png
Binary file modified source/images/scrollbar_box.png
Binary file modified source/images/scrollbar_box_over.png
Binary file modified source/images/throbber.png
48 changes: 0 additions & 48 deletions source/input.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,9 @@

#define ANALOG_SENSITIVITY 30

int rumbleRequest[4] = {0,0,0,0};
int playerMapping[4] = {0,1,2,3};
GuiTrigger userInput[4];

#ifdef HW_RVL
static int rumbleCount[4] = {0,0,0,0};
#endif

// hold superscope/mouse/justifier cursor positions
static int cursor_x[5] = {0,0,0,0,0};
static int cursor_y[5] = {0,0,0,0,0};
Expand Down Expand Up @@ -397,49 +392,6 @@ SetupPads()
}
}

#ifdef HW_RVL
/****************************************************************************
* ShutoffRumble
***************************************************************************/
void ShutoffRumble()
{
if(CONF_GetPadMotorMode() == 0)
return;

for(int i=0;i<4;i++)
{
WPAD_Rumble(i, 0);
rumbleCount[i] = 0;
rumbleRequest[i] = 0;
}
}

/****************************************************************************
* DoRumble
***************************************************************************/
void DoRumble(int i)
{
if(CONF_GetPadMotorMode() == 0 || !GCSettings.Rumble) return;

if(rumbleRequest[i] && rumbleCount[i] < 3)
{
WPAD_Rumble(i, 1); // rumble on
rumbleCount[i]++;
}
else if(rumbleRequest[i])
{
rumbleCount[i] = 12;
rumbleRequest[i] = 0;
}
else
{
if(rumbleCount[i])
rumbleCount[i]--;
WPAD_Rumble(i, 0); // rumble off
}
}
#endif

/****************************************************************************
* UpdateCursorPosition
*
Expand Down
3 changes: 0 additions & 3 deletions source/input.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,9 @@
#define MAXJP 12 // # of mappable controller buttons

extern u32 btnmap[4][6][12];
extern int rumbleRequest[4];
extern int playerMapping[4];

void ResetControls(int cc = -1, int wc = -1);
void ShutoffRumble();
void DoRumble(int i);
void ReportButtons ();
void SetControllers ();
void SetDefaultButtonMap ();
Expand Down
16 changes: 8 additions & 8 deletions source/lang/ca.lang
Original file line number Diff line number Diff line change
Expand Up @@ -457,14 +457,14 @@ msgstr "Nunchuk"
msgid "Off"
msgstr "Off"

msgid "Official Site: http://code.google.com/p/fceugc/"
msgstr "Lloc Oficial: http://code.google.com/p/fceugc/"
msgid "Official Site: https://github.com/dborth/fceugx"
msgstr "Lloc Oficial: https://github.com/dborth/fceugx"

msgid "Official Site: http://code.google.com/p/snes9x-gx/"
msgstr "Lloc Oficial: http://code.google.com/p/snes9x-gx/"
msgid "Official Site: https://github.com/dborth/snes9xgx"
msgstr "Lloc Oficial: https://github.com/dborth/snes9xgx"

msgid "Official Site: http://code.google.com/p/vba-wii/"
msgstr "Lloc Oficial: http://code.google.com/p/vba-wii/"
msgid "Official Site: https://github.com/dborth/vbagx"
msgstr "Lloc Oficial: https://github.com/dborth/vbagx"

msgid "OK"
msgstr "D'acord"
Expand Down Expand Up @@ -724,8 +724,8 @@ msgstr "Ratolí SNES - Comandament GameCube"
msgid "SNES Mouse - Wiimote"
msgstr "Ratolí SNES - Wiimote"

msgid "Snes9x - Copyright (c) Snes9x Team 1996 - 2006"
msgstr "Snes9x - Copyright (c) Snes9x Team 1996 - 2006"
msgid "Snes9x - Copyright (c) Snes9x Team 1996 - 2021"
msgstr "Snes9x - Copyright (c) Snes9x Team 1996 - 2021"

msgid "Sound Effects Volume"
msgstr "Volum d'efectes sonors"
Expand Down
14 changes: 7 additions & 7 deletions source/lang/de.lang
Original file line number Diff line number Diff line change
Expand Up @@ -457,14 +457,14 @@ msgstr ""
msgid "Off"
msgstr "Aus"

msgid "Official Site: http://code.google.com/p/fceugc/"
msgstr "Offizielle Seite: http://code.google.com/p/fceugc/"
msgid "Official Site: https://github.com/dborth/fceugx"
msgstr "Offizielle Seite: https://github.com/dborth/fceugx"

msgid "Official Site: http://code.google.com/p/snes9x-gx/"
msgstr "Offizielle Seite: http://code.google.com/p/snes9x-gx/"
msgid "Official Site: https://github.com/dborth/snes9xgx"
msgstr "Offizielle Seite: https://github.com/dborth/snes9xgx"

msgid "Official Site: http://code.google.com/p/vba-wii/"
msgstr "Offizielle Seite: http://code.google.com/p/vba-wii/"
msgid "Official Site: https://github.com/dborth/vbagx"
msgstr "Offizielle Seite: https://github.com/dborth/vbagx"

msgid "OK"
msgstr ""
Expand Down Expand Up @@ -724,7 +724,7 @@ msgstr "SNES Maus - GameCube Controller"
msgid "SNES Mouse - Wiimote"
msgstr "SNES Maus - Wii-FB"

msgid "Snes9x - Copyright (c) Snes9x Team 1996 - 2006"
msgid "Snes9x - Copyright (c) Snes9x Team 1996 - 2021"
msgstr ""

msgid "Sound Effects Volume"
Expand Down
4 changes: 2 additions & 2 deletions source/lang/es.lang
Original file line number Diff line number Diff line change
Expand Up @@ -787,8 +787,8 @@ msgstr "Controles de SNES (4)"
msgid "SNES Mouse"
msgstr "Mouse de SNES"

msgid "Snes9x - Copyright (c) Snes9x Team 1996 - 2006"
msgstr "Snes9x - Derechos de autor (c) Snes9x Team 1996 - 2006"
msgid "Snes9x - Copyright (c) Snes9x Team 1996 - 2021"
msgstr "Snes9x - Derechos de autor (c) Snes9x Team 1996 - 2021"

msgid "SRAM"
msgstr "SRAM"
Expand Down
13 changes: 2 additions & 11 deletions source/lang/fr.lang
Original file line number Diff line number Diff line change
Expand Up @@ -232,12 +232,6 @@ msgstr "Le fichier BIOS du FDS (Famicom Disk System) est introuvable !"
msgid "Filtered"
msgstr "Filtré"

msgid "Filtered (Sharp)"
msgstr "Filtré (net)"

msgid "Filtered (Soft)"
msgstr "Filtré (doux)"

msgid "Fire"
msgstr "Tirer"

Expand Down Expand Up @@ -541,9 +535,6 @@ msgstr "DROITE"
msgid "Right Button"
msgstr "Clic droit"

msgid "Rumble"
msgstr "Vibration"

msgid "Save"
msgstr "Sauver"

Expand Down Expand Up @@ -592,8 +583,8 @@ msgstr "Sauvegarde en cours..."
msgid "Scaling"
msgstr "Format"

msgid "CRT filter"
msgstr "Filtre CRT"
msgid "Scanlines"
msgstr "Ligne de balayage"

msgid "Screen Position"
msgstr "Position de l'écran"
Expand Down
14 changes: 7 additions & 7 deletions source/lang/it.lang
Original file line number Diff line number Diff line change
Expand Up @@ -457,14 +457,14 @@ msgstr "Nunchuk"
msgid "Off"
msgstr "Off"

msgid "Official Site: http://code.google.com/p/fceugc/"
msgstr "Sito Ufficiale: http://code.google.com/p/fceugc/"
msgid "Official Site: https://github.com/dborth/fceugx"
msgstr "Sito Ufficiale: https://github.com/dborth/fceugx"

msgid "Official Site: http://code.google.com/p/snes9x-gx/"
msgstr "Sito Ufficiale: http://code.google.com/p/snes9x-gx/"
msgid "Official Site: https://github.com/dborth/snes9xgx"
msgstr "Sito Ufficiale: https://github.com/dborth/snes9xgx"

msgid "Official Site: http://code.google.com/p/vba-wii/"
msgstr "Sito Ufficiale: http://code.google.com/p/vba-wii/"
msgid "Official Site: https://github.com/dborth/vbagx"
msgstr "Sito Ufficiale: https://github.com/dborth/vbagx"

msgid "OK"
msgstr ""
Expand Down Expand Up @@ -724,7 +724,7 @@ msgstr ""
msgid "SNES Mouse - Wiimote"
msgstr ""

msgid "Snes9x - Copyright (c) Snes9x Team 1996 - 2006"
msgid "Snes9x - Copyright (c) Snes9x Team 1996 - 2021"
msgstr ""

msgid "Sound Effects Volume"
Expand Down
Loading

0 comments on commit 57f9321

Please sign in to comment.