mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-05 06:26:49 +00:00
MSVC bug workaround
This commit is contained in:
parent
6164b3d2e2
commit
3b11f22062
4 changed files with 11 additions and 25 deletions
|
|
@ -8,6 +8,7 @@
|
|||
#include <time.h>
|
||||
#include "Utilities/StrUtil.h"
|
||||
#include "Utilities/span.h"
|
||||
#include "Utilities/File.h"
|
||||
|
||||
#include <memory>
|
||||
#include <string>
|
||||
|
|
@ -124,7 +125,7 @@ char* extract_file_name(const char* file_path, char real_file_name[MAX_PATH])
|
|||
{
|
||||
std::string_view v(file_path);
|
||||
|
||||
if (auto pos = v.find_last_of("/\\"); pos != umax)
|
||||
if (auto pos = v.find_last_of(fs::delim); pos != umax)
|
||||
{
|
||||
v.remove_prefix(pos + 1);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue