mirror of
https://github.com/ModOrganizer2/modorganizer-game_starfield.git
synced 2026-07-27 14:08:51 -07:00
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:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user