mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-06 17:00:19 +02:00
FHU: Convert relative/absolute check to string_view
This commit is contained in:
1 parent
46b306e861
commit
dce6389d87
1 file changed
+2
-2
@@ -127,11 +127,11 @@ namespace FHU::Filesystem {
|
||||
return SubString;
|
||||
}
|
||||
|
||||
inline bool IsRelative(const fextl::string &Path) {
|
||||
inline bool IsRelative(const std::string_view Path) {
|
||||
return !Path.starts_with('/');
|
||||
}
|
||||
|
||||
inline bool IsAbsolute(const fextl::string &Path) {
|
||||
inline bool IsAbsolute(const std::string_view Path) {
|
||||
return Path.starts_with('/');
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user