1
0
mirror of https://gitlab.com/pholy/OSCAR-code.git synced 2025-04-13 17:20:51 +00:00

Fix profile datafolder access glitch

This commit is contained in:
Mark Watkins 2018-06-09 22:22:57 +10:00
parent 274768f9db
commit b4e69627c7

View File

@ -543,10 +543,11 @@ void Machine::setInfo(MachineInfo inf)
//const quint32 channel_version=1; //const quint32 channel_version=1;
const QString Machine::getDataPath() const QString Machine::getDataPath()
{ {
m_dataPath = PREF.Get("{home}/Profiles/")+profile->user->userName()+"/"+info.loadername + "_" + (info.serial.isEmpty() ? hexid() : info.serial) + "/";
//if (m_dataPath.isEmpty()) { //if (m_dataPath.isEmpty()) {
m_dataPath = profile->Get("{" + STR_GEN_DataFolder + "}/" + info.loadername + "_" + (info.serial.isEmpty() ? hexid() : info.serial)) + "/"; // m_dataPath = profile->Get("{" + STR_GEN_DataFolder + "}/" + info.loadername + "_" + (info.serial.isEmpty() ? hexid() : info.serial)) + "/";
// } // }
return m_dataPath; return m_dataPath;
} }