ps4delta/code/common/utl/path.h
Force67 39720568fa Last changes as of 02/05/20
-includes a new filesystem
-complete rewrite of the PRX loader (still in progress)
-rewritten kernel infrastructure
-and much more
2020-02-05 13:58:11 +01:00

30 lines
No EOL
648 B
C++

#pragma once
/*
* UTL : The universal utility library
*
* Copyright 2019-2020 Force67.
* For information regarding licensing see LICENSE
* in the root of the source tree.
*/
#include <string>
// implements various path utility functions
namespace utl {
enum app_path {
data_dir,
config_dir,
count
};
// creates a sanitized path relative to the current executable
std::string make_abs_path(std::string_view rel = nullptr);
// creates a sanitized path relative to the specified link
std::string make_app_path(app_path, std::string_view rel = nullptr);
bool exists(std::string_view rel);
bool make_dir(std::string_view rel);
}