mirror of
https://github.com/ModOrganizer2/modorganizer-game_gamebryo.git
synced 2026-07-27 13:59:04 -07:00
Replace ScriptExtender saveGameAttachmentExtensions with savegameExtension.
This commit is contained in:
@@ -63,13 +63,6 @@ QStringList GamebryoSaveGame::allFiles() const
|
||||
ScriptExtender const *e = m_Game->feature<ScriptExtender>();
|
||||
if (e != nullptr) {
|
||||
QFileInfo file(m_FileName);
|
||||
for (QString const &ext : e->saveGameAttachmentExtensions()) {
|
||||
QFileInfo name(file.absoluteDir().absoluteFilePath(file.completeBaseName() + "." + ext));
|
||||
if (name.exists()) {
|
||||
res.push_back(name.absoluteFilePath());
|
||||
}
|
||||
}
|
||||
|
||||
QFileInfo SEfile(file.absolutePath() + "/" + file.completeBaseName() + "." + m_Game->savegameSEExtension());
|
||||
if (SEfile.exists()) {
|
||||
res.push_back(SEfile.absoluteFilePath());
|
||||
|
||||
@@ -26,6 +26,11 @@ QString GamebryoScriptExtender::loaderPath() const
|
||||
return m_Game->gameDirectory().absoluteFilePath(loaderName());
|
||||
}
|
||||
|
||||
QString GamebryoScriptExtender::savegameExtension() const
|
||||
{
|
||||
return m_Game->savegameSEExtension();
|
||||
}
|
||||
|
||||
bool GamebryoScriptExtender::isInstalled() const
|
||||
{
|
||||
//A note: It is possibly also OK if xxse_steam_loader.dll exists, but it's
|
||||
|
||||
@@ -16,6 +16,8 @@ public:
|
||||
|
||||
virtual QString loaderPath() const override;
|
||||
|
||||
virtual QString savegameExtension() const override;
|
||||
|
||||
virtual bool isInstalled() const override;
|
||||
|
||||
virtual QString getExtenderVersion() const override;
|
||||
|
||||
@@ -32,6 +32,7 @@ class GameGamebryo : public MOBase::IPluginGame,
|
||||
friend class GamebryoScriptExtender;
|
||||
friend class GamebryoSaveGameInfo;
|
||||
friend class GamebryoSaveGameInfoWidget;
|
||||
friend class GamebryoSaveGame;
|
||||
|
||||
/**
|
||||
* Some Bethesda games do not have a valid file version but a valid product
|
||||
@@ -86,8 +87,6 @@ public: // IPluginFileMapper interface
|
||||
|
||||
protected:
|
||||
|
||||
friend class GamebryoSaveGame;
|
||||
|
||||
// Retrieve the saves extension for the game.
|
||||
virtual QString savegameExtension() const = 0;
|
||||
virtual QString savegameSEExtension() const = 0;
|
||||
|
||||
Reference in New Issue
Block a user