* fix backslashes in opened by cmd line map path = fix duplicates in recent maps list

This commit is contained in:
Garux
2018-04-21 23:26:40 +03:00
parent 460df292ff
commit 16c00ac54c
3 changed files with 9 additions and 10 deletions

View File

@@ -180,17 +180,16 @@ bool portable_app_setup(){
}
const char* g_openCmdMap;
CopiedString g_openMapByCmd;
void cmdMap(){
g_openCmdMap = NULL;
for ( int i = 1; i < g_argc; ++i )
{
//if ( !stricmp( g_argv[i] + strlen(g_argv[i]) - 4, ".map" ) ){
if( string_equal_suffix_nocase( g_argv[i], ".map" ) ){
g_openCmdMap = g_argv[i];
StringOutputStream stream( 256 );
stream << PathCleaned( g_argv[i] );
g_openMapByCmd = stream.c_str();
return;
}
}
}
#if defined( POSIX )