From 9c0b1235ada0b8af73b3075ac8f89f689fe8f0cc Mon Sep 17 00:00:00 2001 From: NotAdam Date: Wed, 29 Aug 2018 19:58:48 +1000 Subject: [PATCH] fix mob_parse on linux --- src/tools/mob_parse/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tools/mob_parse/main.cpp b/src/tools/mob_parse/main.cpp index 84427731..df5d696b 100644 --- a/src/tools/mob_parse/main.cpp +++ b/src/tools/mob_parse/main.cpp @@ -196,11 +196,11 @@ int main() { 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 ) { 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 ); //g_log.info( zone );