mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 04:08:55 +00:00
DSPCodeUtil some code fixing
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3485 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
a536460067
commit
37ceb042e1
2 changed files with 10 additions and 9 deletions
|
@ -338,14 +338,14 @@ bool SplitPath(const std::string& full_path, std::string* _pPath, std::string* _
|
|||
|
||||
if (last_slash == std::string::npos)
|
||||
{
|
||||
return false;
|
||||
return false; // FIXME return the filename
|
||||
}
|
||||
|
||||
size_t last_dot = full_path.rfind('.');
|
||||
|
||||
if ((last_dot == std::string::npos) || (last_dot < last_slash))
|
||||
{
|
||||
return false;
|
||||
return false; // FIXME why missing . is critical?
|
||||
}
|
||||
|
||||
if (_pPath)
|
||||
|
@ -459,4 +459,4 @@ void NormalizeDirSep(std::string* str)
|
|||
str->replace(i, 1, DIR_SEP);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue