mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-06 16:18:58 +00:00
StringUtil: Add PathToFileName function
This commit is contained in:
parent
c86832849a
commit
5f6598f9e9
4 changed files with 18 additions and 14 deletions
|
@ -97,11 +97,9 @@ GameFile::GameFile() = default;
|
|||
|
||||
GameFile::GameFile(std::string path) : m_file_path(std::move(path))
|
||||
{
|
||||
{
|
||||
std::string name, extension;
|
||||
SplitPath(m_file_path, nullptr, &name, &extension);
|
||||
m_file_name = name + extension;
|
||||
m_file_name = PathToFileName(m_file_path);
|
||||
|
||||
{
|
||||
std::unique_ptr<DiscIO::Volume> volume(DiscIO::CreateVolume(m_file_path));
|
||||
if (volume != nullptr)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue