Skip to content

Commit

Permalink
Refactoring following uibase change for game features. (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
Holt59 authored Jun 9, 2024
1 parent 0639a0e commit 17db11d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
18 changes: 9 additions & 9 deletions src/gameskyrimvr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,14 @@ bool GameSkyrimVR::init(IOrganizer *moInfo)
return false;
}

registerFeature<ScriptExtender>(new SkyrimVRScriptExtender(this));
registerFeature<DataArchives>(new SkyrimVRDataArchives(myGamesPath()));
registerFeature<LocalSavegames>(new GamebryoLocalSavegames(myGamesPath(), "SkyrimVR.ini"));
registerFeature<ModDataChecker>(new SkyrimVRModDataChecker(this));
registerFeature<SaveGameInfo>(new GamebryoSaveGameInfo(this));
registerFeature<ModDataContent>(new SkyrimVRModDataContent(this));
registerFeature<GamePlugins>(new SkyrimVRGamePlugins(moInfo));
registerFeature<UnmanagedMods>(new SkyrimVRUnmangedMods(this));
registerFeature(std::make_shared<SkyrimVRScriptExtender>(this));
registerFeature(std::make_shared<SkyrimVRDataArchives>(myGamesPath()));
registerFeature(std::make_shared<GamebryoLocalSavegames>(myGamesPath(), "SkyrimVR.ini"));
registerFeature(std::make_shared<SkyrimVRModDataChecker>(this));
registerFeature(std::make_shared<GamebryoSaveGameInfo>(this));
registerFeature(std::make_shared<SkyrimVRModDataContent>(m_Organizer->gameFeatures()));
registerFeature(std::make_shared<SkyrimVRGamePlugins>(moInfo));
registerFeature(std::make_shared<SkyrimVRUnmangedMods>(this));

return true;
}
Expand All @@ -90,7 +90,7 @@ QString GameSkyrimVR::gameName() const
QList<ExecutableInfo> GameSkyrimVR::executables() const
{
return QList<ExecutableInfo>()
<< ExecutableInfo("SKSE", findInGameFolder(feature<ScriptExtender>()->loaderName()))
<< ExecutableInfo("SKSE", findInGameFolder(m_Organizer->gameFeatures()->gameFeature<MOBase::ScriptExtender>()->loaderName()))
<< ExecutableInfo("Skyrim VR", findInGameFolder(binaryName()))
<< ExecutableInfo("Creation Kit", findInGameFolder("CreationKit.exe"))
<< ExecutableInfo("LOOT", QFileInfo(getLootPath())).withArgument("--game=\"Skyrim VR\"")
Expand Down
2 changes: 1 addition & 1 deletion src/skyrimvrmoddatacontent.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class SkyrimVRModDataContent : public GamebryoModDataContent {
/**
*
*/
SkyrimVRModDataContent(GameGamebryo const* gamePlugin) : GamebryoModDataContent(gamePlugin) {
SkyrimVRModDataContent(MOBase::IGameFeatures const* gameFeatures) : GamebryoModDataContent(gameFeatures) {
// Just need to disable some contents:
m_Enabled[CONTENT_SKYPROC] = false;
}
Expand Down

0 comments on commit 17db11d

Please sign in to comment.