diff --git a/appveyor.yml b/appveyor.yml
index 08521e79..486c0be2 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -1,4 +1,4 @@
-version: 1.59.1-{build}
+version: 1.59.2-{build}
image: Visual Studio 2017
diff --git a/docs/changes.txt b/docs/changes.txt
index 50e21dc0..5eb51e38 100644
--- a/docs/changes.txt
+++ b/docs/changes.txt
@@ -1,3 +1,6 @@
+Snes9x 1.59.2
+- Fix out-of-bounds access on APU memory.
+
Snes9x 1.59.1
- Fix sound core breakage.
diff --git a/docs/porting.html b/docs/porting.html
index 111a091d..a46cc4d8 100644
--- a/docs/porting.html
+++ b/docs/porting.html
@@ -12,7 +12,7 @@
How to Port Snes9x to a New Platform
- Version: 1.59.1
+ Version: 1.59.2
Introduction
diff --git a/gtk/meson.build b/gtk/meson.build
index e569395f..bafdab36 100644
--- a/gtk/meson.build
+++ b/gtk/meson.build
@@ -1,6 +1,6 @@
project('snes9x-gtk',
['c', 'cpp'],
- version: '1.59.1',
+ version: '1.59.2',
default_options: ['cpp_std=c++11'])
args = ['-DSNES9X_GTK', '-DUNZIP_SUPPORT', '-DNETPLAY_SUPPORT', '-DJMA_SUPPORT', '-Wall', '-W', '-Wno-unused-parameter']
diff --git a/macosx/English.lproj/InfoPlist.strings b/macosx/English.lproj/InfoPlist.strings
index 0408f4d7..8f5b0ed2 100644
--- a/macosx/English.lproj/InfoPlist.strings
+++ b/macosx/English.lproj/InfoPlist.strings
@@ -1,5 +1,5 @@
/* Localized versions of Info.plist keys */
CFBundleName = "Snes9x";
-CFBundleShortVersionString = "1.59.1";
-CFBundleGetInfoString = "Snes9x 1.59.1, Copyright 1996-2019 Snes9x developers.";
+CFBundleShortVersionString = "1.59.2";
+CFBundleGetInfoString = "Snes9x 1.59.2, Copyright 1996-2019 Snes9x developers.";
diff --git a/macosx/Info.plist b/macosx/Info.plist
index 2d5363b8..7ad0a660 100644
--- a/macosx/Info.plist
+++ b/macosx/Info.plist
@@ -162,7 +162,7 @@
CFBundleExecutable
Snes9x
CFBundleGetInfoString
- Snes9x 1.59.1, Copyright 1996-2019 Snes9x developers.
+ Snes9x 1.59.2, Copyright 1996-2019 Snes9x developers.
CFBundleHelpBookFolder
Snes9x Help
CFBundleHelpBookName
@@ -178,11 +178,11 @@
CFBundlePackageType
APPL
CFBundleShortVersionString
- 1.59.1
+ 1.59.2
CFBundleSignature
~9X~
CFBundleVersion
- 1.59.1
+ 1.59.2
CSResourcesFileMapped
diff --git a/macosx/Info_i386.plist b/macosx/Info_i386.plist
index 5ef820e4..9e23d6e9 100644
--- a/macosx/Info_i386.plist
+++ b/macosx/Info_i386.plist
@@ -162,7 +162,7 @@
CFBundleExecutable
Snes9x (i386)
CFBundleGetInfoString
- Snes9x 1.59.1, Copyright 1996-2019 Snes9x developers.
+ Snes9x 1.59.2, Copyright 1996-2019 Snes9x developers.
CFBundleHelpBookFolder
Snes9x Help
CFBundleHelpBookName
@@ -178,11 +178,11 @@
CFBundlePackageType
APPL
CFBundleShortVersionString
- 1.59.1
+ 1.59.2
CFBundleSignature
~9X~
CFBundleVersion
- 1.59.1
+ 1.59.2
CSResourcesFileMapped
diff --git a/macosx/Info_ppc.plist b/macosx/Info_ppc.plist
index 42528868..3628059e 100644
--- a/macosx/Info_ppc.plist
+++ b/macosx/Info_ppc.plist
@@ -162,7 +162,7 @@
CFBundleExecutable
Snes9x (ppc)
CFBundleGetInfoString
- Snes9x 1.59.1, Copyright 1996-2019 Snes9x developers.
+ Snes9x 1.59.2, Copyright 1996-2019 Snes9x developers.
CFBundleHelpBookFolder
Snes9x Help
CFBundleHelpBookName
@@ -178,11 +178,11 @@
CFBundlePackageType
APPL
CFBundleShortVersionString
- 1.59.1
+ 1.59.2
CFBundleSignature
~9X~
CFBundleVersion
- 1.59.1
+ 1.59.2
CSResourcesFileMapped
diff --git a/snes9x.h b/snes9x.h
index 285ea27d..e096a1de 100644
--- a/snes9x.h
+++ b/snes9x.h
@@ -8,7 +8,7 @@
#define _SNES9X_H_
#ifndef VERSION
-#define VERSION "1.59.1"
+#define VERSION "1.59.2"
#endif
#include "port.h"
diff --git a/unix/configure b/unix/configure
index b297f5b1..cd7f7644 100755
--- a/unix/configure
+++ b/unix/configure
@@ -1,7 +1,7 @@
#! /bin/sh
-# From configure.ac Revision: 1.59.1 .
+# From configure.ac Revision: 1.59.2 .
# Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.69 for Snes9x 1.59.1.
+# Generated by GNU Autoconf 2.69 for Snes9x 1.59.2.
#
#
# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
@@ -578,8 +578,8 @@ MAKEFLAGS=
# Identity of this package.
PACKAGE_NAME='Snes9x'
PACKAGE_TARNAME='snes9x'
-PACKAGE_VERSION='1.59.1'
-PACKAGE_STRING='Snes9x 1.59.1'
+PACKAGE_VERSION='1.59.2'
+PACKAGE_STRING='Snes9x 1.59.2'
PACKAGE_BUGREPORT=''
PACKAGE_URL=''
@@ -1280,7 +1280,7 @@ if test "$ac_init_help" = "long"; then
# Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF
-\`configure' configures Snes9x 1.59.1 to adapt to many kinds of systems.
+\`configure' configures Snes9x 1.59.2 to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]...
@@ -1350,7 +1350,7 @@ fi
if test -n "$ac_init_help"; then
case $ac_init_help in
- short | recursive ) echo "Configuration of Snes9x 1.59.1:";;
+ short | recursive ) echo "Configuration of Snes9x 1.59.2:";;
esac
cat <<\_ACEOF
@@ -1468,7 +1468,7 @@ fi
test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
cat <<\_ACEOF
-Snes9x configure 1.59.1
+Snes9x configure 1.59.2
generated by GNU Autoconf 2.69
Copyright (C) 2012 Free Software Foundation, Inc.
@@ -1871,7 +1871,7 @@ cat >config.log <<_ACEOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
-It was created by Snes9x $as_me 1.59.1, which was
+It was created by Snes9x $as_me 1.59.2, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ $0 $@
@@ -6917,7 +6917,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
-This file was extended by Snes9x $as_me 1.59.1, which was
+This file was extended by Snes9x $as_me 1.59.2, which was
generated by GNU Autoconf 2.69. Invocation command line was
CONFIG_FILES = $CONFIG_FILES
@@ -6970,7 +6970,7 @@ _ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
ac_cs_version="\\
-Snes9x config.status 1.59.1
+Snes9x config.status 1.59.2
configured by $0, generated by GNU Autoconf 2.69,
with options \\"\$ac_cs_config\\"
diff --git a/unix/configure.ac b/unix/configure.ac
index 79a51035..73563184 100644
--- a/unix/configure.ac
+++ b/unix/configure.ac
@@ -1,6 +1,6 @@
AC_PREREQ([2.60])
-AC_INIT([Snes9x], [1.59.1], [], [snes9x])
-AC_REVISION([$Revision: 1.59.1 $])
+AC_INIT([Snes9x], [1.59.2], [], [snes9x])
+AC_REVISION([$Revision: 1.59.2 $])
AC_CONFIG_SRCDIR([unix.cpp])
diff --git a/win32/docs/readme-windows.txt b/win32/docs/readme-windows.txt
index ef4d0af4..dd6a38c1 100644
--- a/win32/docs/readme-windows.txt
+++ b/win32/docs/readme-windows.txt
@@ -7,7 +7,7 @@ Files included in the Snes9x archive:
changes.txt
snes9x-license.txt
-version 1.59.1 February, 2019
+version 1.59.2 February, 2019
Home page: http://www.snes9x.com/
Source code: https://github.com/snes9xgit/snes9x/
diff --git a/win32/rsrc/snes9x.rc b/win32/rsrc/snes9x.rc
index b5044456..2ccef38a 100644
--- a/win32/rsrc/snes9x.rc
+++ b/win32/rsrc/snes9x.rc
@@ -820,12 +820,12 @@ BEGIN
BEGIN
VALUE "CompanyName", "http://www.snes9x.com"
VALUE "FileDescription", "Snes9x"
- VALUE "FileVersion", "1.59.1"
+ VALUE "FileVersion", "1.59.2"
VALUE "InternalName", "Snes9x"
VALUE "LegalCopyright", "Copyright 1996-2019"
VALUE "OriginalFilename", "Snes9x.exe"
VALUE "ProductName", "Snes9x SNES Emulator"
- VALUE "ProductVersion", "1.59.1"
+ VALUE "ProductVersion", "1.59.2"
END
END
BLOCK "VarFileInfo"