Handle IPluginGame::CONFIGURATION flag and use forward slash for QFile (#33)

* Handle IPluginGame::CONFIGURATION in initializeProfile

---------

Co-authored-by: RJ <Liderate@users.noreply.github.com>
This commit is contained in:
RJ
2024-11-05 14:22:46 +01:00
committed by GitHub
co-authored by RJ
parent ddd90cc063
commit e426700527
+4 -1
View File
@@ -160,6 +160,9 @@ void GameStarfield::initializeProfile(const QDir& path, ProfileSettings settings
{
if (settings.testFlag(IPluginGame::MODS)) {
copyToProfile(localAppFolder() + "/Starfield", path, "plugins.txt");
}
if (settings.testFlag(IPluginGame::CONFIGURATION)) {
copyToProfile(myGamesPath(), path, "StarfieldPrefs.ini");
copyToProfile(myGamesPath(), path, "StarfieldCustom.ini");
}
@@ -278,7 +281,7 @@ QStringList GameStarfield::CCCPlugins() const
// force-loading the core game plugins.
QStringList plugins = {};
if (!testFilePresent()) {
QFile myDocsCCCFile(myGamesPath() + "\Starfield.ccc");
QFile myDocsCCCFile(myGamesPath() + "/Starfield.ccc");
QFile gameCCCFile(gameDirectory().absoluteFilePath("Starfield.ccc"));
QFile* file;
if (myDocsCCCFile.exists()) {