aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjcm <john.moody@coloradocollege.edu>2024-02-10 12:41:02 -0600
committerGitHub <noreply@github.com>2024-02-10 19:41:02 +0100
commitb82e789d4f023f1797c9352bb0e7155595d6f1a2 (patch)
tree01df812798437c01ee23d22c7f7bfd3be9cd90a3
parent4a6724622ee32397642fa9221e494c8fb6fbf126 (diff)
Load custom SDL mappings from application data folder (#6295)1.1.1176
Co-authored-by: jcm <butt@butts.com>
-rw-r--r--src/Ryujinx.SDL2.Common/SDL2Driver.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Ryujinx.SDL2.Common/SDL2Driver.cs b/src/Ryujinx.SDL2.Common/SDL2Driver.cs
index 552deafd..ed6d9419 100644
--- a/src/Ryujinx.SDL2.Common/SDL2Driver.cs
+++ b/src/Ryujinx.SDL2.Common/SDL2Driver.cs
@@ -1,3 +1,4 @@
+using Ryujinx.Common.Configuration;
using Ryujinx.Common.Logging;
using System;
using System.Collections.Concurrent;
@@ -93,7 +94,7 @@ namespace Ryujinx.SDL2.Common
SDL_EventState(SDL_EventType.SDL_CONTROLLERSENSORUPDATE, SDL_DISABLE);
- string gamepadDbPath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "SDL_GameControllerDB.txt");
+ string gamepadDbPath = Path.Combine(AppDataManager.BaseDirPath, "SDL_GameControllerDB.txt");
if (File.Exists(gamepadDbPath))
{