diff --git a/apps/openmw/mwstate/statemanagerimp.cpp b/apps/openmw/mwstate/statemanagerimp.cpp index 50a3a48ad8..9f572fde9e 100644 --- a/apps/openmw/mwstate/statemanagerimp.cpp +++ b/apps/openmw/mwstate/statemanagerimp.cpp @@ -1,5 +1,7 @@ #include "statemanagerimp.hpp" +#include + #include #include @@ -388,7 +390,7 @@ void MWState::StateManager::loadGame (const Character *character, const std::str { cleanup(); - Log(Debug::Info) << "Reading save file " << boost::filesystem::path(filepath).filename().string(); + Log(Debug::Info) << "Reading save file " << std::filesystem::path(filepath).filename().string(); ESM::ESMReader reader; reader.open (filepath); diff --git a/apps/openmw_test_suite/mwworld/test_store.cpp b/apps/openmw_test_suite/mwworld/test_store.cpp index ab1fdd4995..c656064a96 100644 --- a/apps/openmw_test_suite/mwworld/test_store.cpp +++ b/apps/openmw_test_suite/mwworld/test_store.cpp @@ -1,6 +1,7 @@ #include -#include +#include +#include #include #include @@ -110,7 +111,7 @@ TEST_F(ContentFileTest, dialogue_merging_test) const std::string file = "test_dialogue_merging.txt"; - boost::filesystem::ofstream stream; + std::ofstream stream; stream.open(file); const MWWorld::Store& dialStore = mEsmStore.get(); @@ -192,7 +193,7 @@ TEST_F(ContentFileTest, content_diagnostics_test) const std::string file = "test_content_diagnostics.txt"; - boost::filesystem::ofstream stream; + std::ofstream stream; stream.open(file); RUN_TEST_FOR_TYPES(printRecords, mEsmStore, stream); diff --git a/apps/openmw_test_suite/settings/parser.cpp b/apps/openmw_test_suite/settings/parser.cpp index d54360fc28..abaa700730 100644 --- a/apps/openmw_test_suite/settings/parser.cpp +++ b/apps/openmw_test_suite/settings/parser.cpp @@ -1,6 +1,6 @@ #include -#include +#include #include @@ -20,7 +20,7 @@ namespace const auto path = std::string(UnitTest::GetInstance()->current_test_info()->name()) + ".cfg"; { - boost::filesystem::ofstream stream; + std::ofstream stream; stream.open(path); stream << content; stream.close(); diff --git a/apps/openmw_test_suite/shader/shadermanager.cpp b/apps/openmw_test_suite/shader/shadermanager.cpp index a25e5e9ba6..1b0cd7c741 100644 --- a/apps/openmw_test_suite/shader/shadermanager.cpp +++ b/apps/openmw_test_suite/shader/shadermanager.cpp @@ -1,6 +1,6 @@ #include -#include +#include #include @@ -31,7 +31,7 @@ namespace const auto path = UnitTest::GetInstance()->current_test_info()->name() + suffix + ".glsl"; { - boost::filesystem::ofstream stream; + std::ofstream stream; stream.open(path); stream << content; stream.close(); diff --git a/components/settings/settings.cpp b/components/settings/settings.cpp index e9ad6a1bf5..99093d7a1d 100644 --- a/components/settings/settings.cpp +++ b/components/settings/settings.cpp @@ -1,6 +1,7 @@ #include "settings.hpp" #include "parser.hpp" +#include #include #include @@ -44,7 +45,7 @@ std::string Manager::load(const Files::ConfigurationManager& cfgMgr, bool loadEd // Create the settings manager and load default settings file. const std::string defaultsBin = (paths.front() / defaultSettingsFile).string(); - if (!boost::filesystem::exists(defaultsBin)) + if (!std::filesystem::exists(defaultsBin)) throw std::runtime_error ("No default settings file found! Make sure the file \"" + defaultSettingsFile + "\" was properly installed."); parser.loadSettingsFile(defaultsBin, mDefaultSettings, true, false); @@ -52,13 +53,13 @@ std::string Manager::load(const Files::ConfigurationManager& cfgMgr, bool loadEd for (int i = 0; i < static_cast(paths.size()) - 1; ++i) { const std::string additionalDefaults = (paths[i] / userSettingsFile).string(); - if (boost::filesystem::exists(additionalDefaults)) + if (std::filesystem::exists(additionalDefaults)) parser.loadSettingsFile(additionalDefaults, mDefaultSettings, false, true); } // Load "settings.cfg" or "openmw-cs.cfg" from the last config dir as user settings. This path will be used to save modified settings. std::string settingspath = (paths.back() / userSettingsFile).string(); - if (boost::filesystem::exists(settingspath)) + if (std::filesystem::exists(settingspath)) parser.loadSettingsFile(settingspath, mUserSettings, false, false); return settingspath; diff --git a/components/translation/translation.cpp b/components/translation/translation.cpp index f2cdd803e7..bc6ba1c44d 100644 --- a/components/translation/translation.cpp +++ b/components/translation/translation.cpp @@ -1,6 +1,6 @@ #include "translation.hpp" -#include +#include namespace Translation { @@ -32,8 +32,8 @@ namespace Translation if (dataFileCollections.getCollection (extension).doesExist (fileName)) { - boost::filesystem::ifstream stream ( - dataFileCollections.getCollection (extension).getPath (fileName)); + std::ifstream stream ( + dataFileCollections.getCollection (extension).getPath (fileName).c_str()); if (!stream.is_open()) throw std::runtime_error ("failed to open translation file: " + fileName);