mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Refactor ModConfiguration
This commit is contained in:
parent
1d512ef7f4
commit
06de82fd86
10 changed files with 501 additions and 409 deletions
|
@ -60,6 +60,11 @@ bool IsPathAbsolute(const std::string &path);
|
|||
|
||||
bool IsDir(const std::string &path);
|
||||
|
||||
inline bool IsFile(const std::string &path)
|
||||
{
|
||||
return PathExists(path) && !IsDir(path);
|
||||
}
|
||||
|
||||
bool IsDirDelimiter(char c);
|
||||
|
||||
// Only pass full paths to this one. True on success.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue