Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from
Nov 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading