mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-05-30 18:16:31 +03:00
Allow to load files with : in their names.
This commit is contained in:
@@ -34,10 +34,15 @@ App* appInstance = nullptr;
|
||||
|
||||
static bool pathHasPosition( const std::string& path ) {
|
||||
#if EE_PLATFORM == EE_PLATFORM_WIN
|
||||
return std::count( path.begin(), path.end(), ':' ) > 1;
|
||||
bool countedSep = std::count( path.begin(), path.end(), ':' ) > 1;
|
||||
#else
|
||||
return std::count( path.begin(), path.end(), ':' ) > 0;
|
||||
bool countedSep = std::count( path.begin(), path.end(), ':' ) > 0;
|
||||
#endif
|
||||
if ( countedSep ) {
|
||||
auto seps = String::split( path, ':' );
|
||||
return String::isNumber( seps.back() );
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
static std::pair<std::string, TextPosition> getPathAndPosition( const std::string& path ) {
|
||||
|
||||
Reference in New Issue
Block a user