]> Shamusworld >> Repos - virtualjaguar/commitdiff
Use XDG_DATA_DIR for eeproms and roms, and update manual page accordingly
authorTeemu Hukkanen <tjhukkan@iki.fi>
Fri, 25 Jul 2014 14:47:36 +0000 (15:47 +0100)
committerTeemu Hukkanen <tjhukkan@iki.fi>
Fri, 25 Jul 2014 14:47:36 +0000 (15:47 +0100)
docs/virtualjaguar.1
src/gui/mainwin.cpp

index 5ebcdf3837248b9356a29fe9b9e8a496d3c38086..b220179ac3e17d4452a352d425af94b9304e427a 100644 (file)
@@ -131,13 +131,13 @@ Keypad #
 Virtualjaguar log file. If the file cannot be opened, the log it sent
 to standard output instead. The log file is overwritten on startup.
 .TP
-.B ~/virtualjaguar/eeproms/
+.B ${XDG_DATA_HOME}/virtualjaguar/eeproms/ (typically ~/.local/share/data/virtualjaguar/eeproms/)
 Some Atari Jaguar cartridges feature a small writable EEPROM, used for
 saving game state and score lists. If this directory exists,
 virtualjaguar will emulate the EEPROM by saving the state in file in
 this directory.
 .TP
-.B ~/virtualjaguar/software/
+.B ${XDG_DATA_HOME}/virtualjaguar/software/ (typically ~/.local/share/data/virtualjaguar/software/)
 The virtualjaguar GUI for loading software scans this directory, and
 shows the loadable files, along with information about the program,
 and a label image if one is included in a zip archive of the software.
index 762c38660758ba834b733319303546236d545086..f4dda13e411a9ad2443e79d107e0aba3fdd96a07 100644 (file)
@@ -1122,8 +1122,8 @@ void MainWin::ReadSettings(void)
        vjs.allowWritesToROM = settings.value("writeROM", false).toBool();
        vjs.biosType         = settings.value("biosType", BT_M_SERIES).toInt();
        vjs.useFastBlitter   = settings.value("useFastBlitter", false).toBool();
-       strcpy(vjs.EEPROMPath, settings.value("EEPROMs", "./eeproms/").toString().toAscii().data());
-       strcpy(vjs.ROMPath, settings.value("ROMs", "./software/").toString().toAscii().data());
+       strcpy(vjs.EEPROMPath, settings.value("EEPROMs", QDesktopServices::storageLocation(QDesktopServices::DataLocation).append("/eeproms/")).toString().toAscii().data());
+       strcpy(vjs.ROMPath, settings.value("ROMs", QDesktopServices::storageLocation(QDesktopServices::DataLocation).append("/software/")).toString().toAscii().data());
        strcpy(vjs.alpineROMPath, settings.value("DefaultROM", "").toString().toAscii().data());
        strcpy(vjs.absROMPath, settings.value("DefaultABS", "").toString().toAscii().data());