From 7f4f4cafea5a196ddf824adf7c4e65cec5d44d88 Mon Sep 17 00:00:00 2001 From: Tannin Date: Tue, 17 Nov 2015 18:58:00 +0100 Subject: first work on interfacing with usvfs --- src/organizercore.h | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'src/organizercore.h') diff --git a/src/organizercore.h b/src/organizercore.h index 85f0e0c4..1de1dfe8 100644 --- a/src/organizercore.h +++ b/src/organizercore.h @@ -14,6 +14,7 @@ #include "modlistsortproxy.h" #include "pluginlistsortproxy.h" #include "executableslist.h" +#include "usvfsconnector.h" #include #include #include @@ -157,7 +158,10 @@ public: bool onFinishedRun(const std::function &func); void refreshModList(bool saveChanges = true); - std::vector > fileMapping(); + /** + * @brief return a descriptor of the mappings real file->virtual file + */ + std::vector fileMapping(); public: // IPluginDiagnose interface @@ -210,9 +214,10 @@ private: bool testForSteam(); - std::vector> fileMapping(const QString &dataPath, - const MOShared::DirectoryEntry *base, - const MOShared::DirectoryEntry *directoryEntry); + std::vector + fileMapping(const QString &dataPath, const QString &relPath, + const MOShared::DirectoryEntry *base, + const MOShared::DirectoryEntry *directoryEntry); private slots: @@ -270,6 +275,7 @@ private: bool m_ArchivesInit; MOBase::DelayedFileWriter m_PluginListsWriter; + UsvfsConnector m_USVFS; }; -- cgit v1.3.1