Skip to content

Commit

Permalink
Handle IPluginGame::CONFIGURATION flag and use forward slash for QFile (
Browse files Browse the repository at this point in the history
#33)

* Handle IPluginGame::CONFIGURATION in initializeProfile

---------

Co-authored-by: RJ <[email protected]>
  • Loading branch information
Liderate and Liderate authored Nov 5, 2024
1 parent ddd90cc commit e426700
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/gamestarfield.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
Expand Down Expand Up @@ -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()) {
Expand Down

0 comments on commit e426700

Please sign in to comment.