From 6dfebf7df9596fc8f1a3f07d2270bc646e08c7b2 Mon Sep 17 00:00:00 2001
From: John Regan <john@jrjrtech.com>
Date: Fri, 12 Mar 2021 18:42:45 -0500
Subject: [PATCH] gme: add support for rsn files

Upcoming release of game-music-emu will support it, details here: https://bitbucket.org/mpyne/game-music-emu/pull-requests/23/rsn-support
---
 NEWS                                     | 1 +
 src/decoder/plugins/GmeDecoderPlugin.cxx | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/NEWS b/NEWS
index 1c0a4b69c..738904249 100644
--- a/NEWS
+++ b/NEWS
@@ -3,6 +3,7 @@ ver 0.22.7 (not yet released)
   - don't use glibc extension to parse time stamps
 * decoder
   - ffmpeg: fix build problem with FFmpeg 3.4
+  - gme: support RSN files
 * storage
   - curl: don't use glibc extension
 * output
diff --git a/src/decoder/plugins/GmeDecoderPlugin.cxx b/src/decoder/plugins/GmeDecoderPlugin.cxx
index 86efd7288..f279d95b0 100644
--- a/src/decoder/plugins/GmeDecoderPlugin.cxx
+++ b/src/decoder/plugins/GmeDecoderPlugin.cxx
@@ -344,7 +344,7 @@ gme_container_scan(Path path_fs)
 
 static const char *const gme_suffixes[] = {
 	"ay", "gbs", "gym", "hes", "kss", "nsf",
-	"nsfe", "sap", "spc", "vgm", "vgz",
+	"nsfe", "rsn", "sap", "spc", "vgm", "vgz",
 	nullptr
 };