some cleanup
This commit is contained in:
parent
b25ab14587
commit
67ae8daef3
10 changed files with 46 additions and 46 deletions
|
@ -31,6 +31,8 @@ namespace pw {
|
|||
class path {
|
||||
public:
|
||||
|
||||
using path_list = std::vector<std::string>;
|
||||
|
||||
static path& get();
|
||||
~path();
|
||||
|
||||
|
@ -38,19 +40,15 @@ public:
|
|||
|
||||
std::string executable_path() const;
|
||||
|
||||
std::string resource_path() const;
|
||||
|
||||
typedef std::vector<std::string> path_list;
|
||||
|
||||
std::string find_file(const std::string &filename) const;
|
||||
|
||||
path_list resource_paths() const { return _resource_paths; }
|
||||
void set_resource_paths(path_list pl);
|
||||
|
||||
std::string find_file(const std::string &filename) const;
|
||||
|
||||
std::string get_filename(const std::string &filepath, bool with_extension = true) const;
|
||||
|
||||
protected:
|
||||
|
||||
path_list _plugin_paths;
|
||||
path_list _resource_paths;
|
||||
|
||||
path();
|
||||
|
|
|
@ -81,7 +81,12 @@ std::string path::executable_path() const
|
|||
#endif
|
||||
result.assign(buf.data());
|
||||
|
||||
return result;
|
||||
return result;
|
||||
}
|
||||
|
||||
void path::set_resource_paths(path::path_list pl)
|
||||
{
|
||||
_resource_paths = pl;
|
||||
}
|
||||
|
||||
std::string path::find_file(const std::string&) const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue