Skip to content

Commit

Permalink
- Fixed crashing bug when loading CHX files.
Browse files Browse the repository at this point in the history
- Fixed smdh icon and updated make file to build smdh
  • Loading branch information
bubble2k16 committed Apr 9, 2017
1 parent eb43b6e commit 589d7e6
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 4 deletions.
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ include $(DEVKITARM)/3ds_rules
# - icon.png
# - <libctru folder>/default_icon.png
#---------------------------------------------------------------------------------
APP_TITLE := SNES9x for 3DS
APP_DESCRIPTION := High compatibility SNES emulator for 3DS. Based on SNES9x 1.43.
APP_AUTHOR := bubble2k16
ASSETS := assets
ICON := $(ASSETS)/icon.png

TARGET := $(notdir $(CURDIR))
BUILD := build
SOURCES := source
Expand Down
Binary file added assets/Thumbs.db
Binary file not shown.
Binary file added assets/icon.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 snes9x_3ds.3dsx
Binary file not shown.
Binary file modified snes9x_3ds.cia
Binary file not shown.
1 change: 0 additions & 1 deletion source/3dsimpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,6 @@ void impl3dsPrepareForNewFrame()
void impl3dsRunOneFrame(bool firstFrame, bool skipDrawingFrame)
{
Memory.ApplySpeedHackPatches();
gpu3dsStartNewFrame();
gpu3dsEnableAlphaBlending();

if (GPU3DS.emulatorState != EMUSTATE_EMULATE)
Expand Down
1 change: 1 addition & 0 deletions source/3dsmain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1287,6 +1287,7 @@ void emulatorLoop()
if (appExiting)
break;

gpu3dsStartNewFrame();
gpu3dsCheckSlider();
updateFrameCount();

Expand Down
2 changes: 1 addition & 1 deletion source/3dsmenu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#define MENU_HEIGHT (14)
#define DIALOG_HEIGHT (5)

#define SNES9X_VERSION "v1.10"
#define SNES9X_VERSION "v1.11"
#define ANIMATE_TAB_STEPS 3


Expand Down
8 changes: 6 additions & 2 deletions source/cheats2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -401,14 +401,18 @@ bool8 S9xLoadCheatTextFile (const char *filename)
{
uint32 addr;
uint8 byte;

fgets(line, 199, fp);
S9xStripNewLine(line);

enabled = line;

char *newline = strchr(line, '\n');
*newline = 0;

// Fixed crashing bug when loading CHX files.
//
if (newline != NULL)
*newline = 0;

code = strchr(line, ',');
if (code == NULL)
Expand Down

0 comments on commit 589d7e6

Please sign in to comment.