1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-04-27 14:57:44 +00:00

Merge pull request #379 from NotAdam/develop

fix mob_parse on linux
This commit is contained in:
Mordred 2018-08-29 12:01:06 +02:00 committed by GitHub
commit fc6dde28dc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -196,11 +196,11 @@ int main()
{ {
if( !filesys::is_directory( file ) ) if( !filesys::is_directory( file ) )
{ {
auto pos = file.find_last_of( "\\" ); auto pos = file.find_last_of( filesys::path::preferred_separator );
if( pos != std::string::npos ) if( pos != std::string::npos )
{ {
auto str = file.substr( 0, pos ); auto str = file.substr( 0, pos );
pos = str.find_last_of( "\\" ); pos = str.find_last_of( filesys::path::preferred_separator );
auto zone = str.substr( pos + 1 ); auto zone = str.substr( pos + 1 );
//g_log.info( zone ); //g_log.info( zone );