Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unnecessary std filesystem #158

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/layer/layer_settings_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -118,13 +118,13 @@ LayerSettings::LayerSettings(const char *pLayerName, const VkLayerSettingsCreate
(void)pAllocator;
assert(pLayerName != nullptr);

std::filesystem::path settings_file = this->FindSettingsFile();
std::string settings_file = this->FindSettingsFile();
this->ParseSettingsFile(settings_file);
}

LayerSettings::~LayerSettings() {}

void LayerSettings::ParseSettingsFile(const std::filesystem::path &filename) {
void LayerSettings::ParseSettingsFile(const std::string &filename) {
// Extract option = value pairs from a file
std::ifstream file(filename);
if (file.good()) {
Expand All @@ -143,7 +143,7 @@ void LayerSettings::ParseSettingsFile(const std::filesystem::path &filename) {
}
}

std::filesystem::path LayerSettings::FindSettingsFile() {
std::string LayerSettings::FindSettingsFile() {
struct stat info;

#if defined(WIN32)
Expand Down
5 changes: 2 additions & 3 deletions src/layer/layer_settings_manager.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
#include <string>
#include <vector>
#include <map>
#include <filesystem>

namespace vl {
class LayerSettings {
Expand Down Expand Up @@ -51,8 +50,8 @@ namespace vl {
std::string last_log_setting;
std::string last_log_message;

std::filesystem::path FindSettingsFile();
void ParseSettingsFile(const std::filesystem::path &filename);
std::string FindSettingsFile();
void ParseSettingsFile(const std::string &filename);

std::string prefix;
std::string layer_name;
Expand Down