mirror of
https://github.com/Force67/ps4delta.git
synced 2025-04-02 11:01:45 -04:00
-includes a new filesystem -complete rewrite of the PRX loader (still in progress) -rewritten kernel infrastructure -and much more
30 lines
No EOL
648 B
C++
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);
|
|
} |