Use boost::filesystem::path correctly
This commit is contained in:
parent
189003ef95
commit
8c1247c0a8
2 changed files with 2 additions and 2 deletions
|
|
@ -93,7 +93,7 @@ anbox::cmds::Launch::Launch()
|
|||
const auto snap_path = utils::get_env_value("SNAP");
|
||||
if (!snap_path.empty()) {
|
||||
const auto resource_path = fs::path(snap_path) / "usr" / "share" / "anbox";
|
||||
SystemConfiguration::instance().set_resource_path(resource_path.string());
|
||||
SystemConfiguration::instance().set_resource_path(resource_path);
|
||||
}
|
||||
|
||||
std::shared_ptr<ui::SplashScreen> ss;
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ class SystemConfiguration {
|
|||
virtual ~SystemConfiguration() = default;
|
||||
|
||||
void set_data_path(const std::string &path);
|
||||
void set_resource_path(const boost::filesystem &path);
|
||||
void set_resource_path(const boost::filesystem::path &path);
|
||||
|
||||
boost::filesystem::path data_dir() const;
|
||||
std::string rootfs_dir() const;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue