aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArisotura <thetotalworm@gmail.com>2020-05-17 03:02:42 +0200
committerArisotura <thetotalworm@gmail.com>2020-05-17 03:02:42 +0200
commit492a4b4b464b4b48bd821c126475c791e66b5c6d (patch)
tree6193d443e4ce10c90835c4fa475b9f4bef2e7d5c
parent2afa70b8172339266feabbb9a93f2f165521f7d8 (diff)
add config entries for BIOS/firmware paths
-rw-r--r--src/frontend/qt_sdl/PlatformConfig.cpp16
-rw-r--r--src/frontend/qt_sdl/PlatformConfig.h8
2 files changed, 18 insertions, 6 deletions
diff --git a/src/frontend/qt_sdl/PlatformConfig.cpp b/src/frontend/qt_sdl/PlatformConfig.cpp
index f78b195..fba649c 100644
--- a/src/frontend/qt_sdl/PlatformConfig.cpp
+++ b/src/frontend/qt_sdl/PlatformConfig.cpp
@@ -60,9 +60,13 @@ int SavestateRelocSRAM;
int AudioVolume;
int MicInputType;
-char MicWavPath[512];
+char MicWavPath[1024];
-char LastROMFolder[512];
+char LastROMFolder[1024];
+
+char BIOS9Path[1024];
+char BIOS7Path[1024];
+char FirmwarePath[1024];
ConfigEntry PlatformConfigFile[] =
@@ -141,9 +145,13 @@ ConfigEntry PlatformConfigFile[] =
{"AudioVolume", 0, &AudioVolume, 256, NULL, 0},
{"MicInputType", 0, &MicInputType, 1, NULL, 0},
- {"MicWavPath", 1, MicWavPath, 0, "", 511},
+ {"MicWavPath", 1, MicWavPath, 0, "", 1023},
+
+ {"LastROMFolder", 1, LastROMFolder, 0, "", 1023},
- {"LastROMFolder", 1, LastROMFolder, 0, "", 511},
+ {"BIOS9Path", 1, BIOS9Path, 0, "", 1023},
+ {"BIOS7Path", 1, BIOS7Path, 0, "", 1023},
+ {"FirmwarePath", 1, FirmwarePath, 0, "", 1023},
{"", -1, NULL, 0, NULL, 0}
};
diff --git a/src/frontend/qt_sdl/PlatformConfig.h b/src/frontend/qt_sdl/PlatformConfig.h
index d0f765b..e104015 100644
--- a/src/frontend/qt_sdl/PlatformConfig.h
+++ b/src/frontend/qt_sdl/PlatformConfig.h
@@ -73,9 +73,13 @@ extern int SavestateRelocSRAM;
extern int AudioVolume;
extern int MicInputType;
-extern char MicWavPath[512];
+extern char MicWavPath[1024];
-extern char LastROMFolder[512];
+extern char LastROMFolder[1024];
+
+extern char BIOS9Path[1024];
+extern char BIOS7Path[1024];
+extern char FirmwarePath[1024];
}