mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-27 14:57:44 +00:00
Merge branch 'develop' of https://github.com/SapphireMordred/Sapphire into develop
This commit is contained in:
commit
51a292415e
1 changed files with 22 additions and 16 deletions
|
@ -199,9 +199,13 @@ int main()
|
||||||
{
|
{
|
||||||
auto pos = file.find_last_of( "\\" );
|
auto pos = file.find_last_of( "\\" );
|
||||||
if( pos != std::string::npos )
|
if( pos != std::string::npos )
|
||||||
|
{
|
||||||
|
|
||||||
|
auto pos = file.find_last_of( filesys::path::preferred_separator );
|
||||||
|
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 );
|
||||||
|
|
||||||
|
@ -224,6 +228,8 @@ int main()
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
/* if( filesys::is_directory( file ) )
|
/* if( filesys::is_directory( file ) )
|
||||||
{
|
{
|
||||||
auto pos = file.find_last_of( "\\" );
|
auto pos = file.find_last_of( "\\" );
|
||||||
|
|
Loading…
Add table
Reference in a new issue