mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-17 23:55:45 -04:00
HostInterface: Drop std::filesystem requirement
This commit is contained in:
@ -365,6 +365,14 @@ void BuildPathRelativeToFile(String& Destination, const char* CurrentFileName, c
|
||||
BuildOSPath(Destination, Destination.GetCharArray());
|
||||
}
|
||||
|
||||
String BuildPathRelativeToFile(const char* CurrentFileName, const char* NewFileName, bool OSPath /*= true*/,
|
||||
bool Canonicalize /*= true*/)
|
||||
{
|
||||
String ret;
|
||||
BuildPathRelativeToFile(ret, CurrentFileName, NewFileName, OSPath, Canonicalize);
|
||||
return ret;
|
||||
}
|
||||
|
||||
std::unique_ptr<ByteStream> OpenFile(const char* FileName, u32 Flags)
|
||||
{
|
||||
// has a path
|
||||
|
@ -128,6 +128,8 @@ void BuildPathRelativeToFile(char* Destination, u32 cbDestination, const char* C
|
||||
bool OSPath = true, bool Canonicalize = true);
|
||||
void BuildPathRelativeToFile(String& Destination, const char* CurrentFileName, const char* NewFileName,
|
||||
bool OSPath = true, bool Canonicalize = true);
|
||||
String BuildPathRelativeToFile(const char* CurrentFileName, const char* NewFileName, bool OSPath = true,
|
||||
bool Canonicalize = true);
|
||||
|
||||
// sanitizes a filename for use in a filesystem.
|
||||
void SanitizeFileName(char* Destination, u32 cbDestination, const char* FileName, bool StripSlashes = true);
|
||||
|
Reference in New Issue
Block a user