Sync filesystem.h/path.h
This commit is contained in:
@ -6,6 +6,7 @@
|
||||
#include "common/file_system.h"
|
||||
#include "common/log.h"
|
||||
#include "common/make_array.h"
|
||||
#include "common/path.h"
|
||||
#include "common/string.h"
|
||||
#include "common/string_util.h"
|
||||
#include "common_host_interface.h"
|
||||
@ -688,7 +689,7 @@ static void DoChangeDiscFromFile()
|
||||
};
|
||||
|
||||
OpenFileSelector(ICON_FA_COMPACT_DISC " Select Disc Image", false, std::move(callback), GetDiscImageFilters(),
|
||||
std::string(FileSystem::GetPathDirectory(System::GetMediaFileName())));
|
||||
std::string(Path::GetDirectory(System::GetMediaFileName())));
|
||||
}
|
||||
|
||||
static void DoChangeDisc()
|
||||
@ -1120,7 +1121,7 @@ static bool SettingInfoButton(const SettingInfo& si, const char* section)
|
||||
CloseFileSelector();
|
||||
};
|
||||
OpenFileSelector(si.visible_name, false, std::move(callback), ImGuiFullscreen::FileSelectorFilters(),
|
||||
std::string(FileSystem::GetPathDirectory(std::move(value))));
|
||||
std::string(Path::GetDirectory(std::move(value))));
|
||||
}
|
||||
|
||||
return false;
|
||||
@ -2604,7 +2605,7 @@ void DrawQuickMenu(MainWindowType type)
|
||||
SmallString subtitle;
|
||||
if (!code.empty())
|
||||
subtitle.Format("%s - ", code.c_str());
|
||||
subtitle.AppendString(FileSystem::GetFileNameFromPath(System::GetRunningPath()));
|
||||
subtitle.AppendString(Path::GetFileTitle(System::GetRunningPath()));
|
||||
|
||||
const ImVec2 title_size(
|
||||
g_large_font->CalcTextSizeA(g_large_font->FontSize, std::numeric_limits<float>::max(), -1.0f, title.c_str()));
|
||||
@ -3092,7 +3093,7 @@ void DrawGameListWindow()
|
||||
else
|
||||
summary.Format("%s - %s - ", entry->code.c_str(), Settings::GetDiscRegionName(entry->region));
|
||||
|
||||
summary.AppendString(FileSystem::GetFileNameFromPath(entry->path));
|
||||
summary.AppendString(Path::GetFileName(entry->path));
|
||||
|
||||
ImGui::GetWindowDrawList()->AddImage(cover_texture->GetHandle(), bb.Min, bb.Min + image_size, ImVec2(0.0f, 0.0f),
|
||||
ImVec2(1.0f, 1.0f), IM_COL32(255, 255, 255, 255));
|
||||
|
||||
Reference in New Issue
Block a user