mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-06-08 11:43:14 +00:00
fs: Remove some unnecessary string conversions
This commit is contained in:
parent
10a7110c7d
commit
3c8b3f9a29
3 changed files with 9 additions and 14 deletions
|
@ -54,7 +54,7 @@ struct DirEntry {
|
|||
struct File {
|
||||
std::atomic_bool is_opened{};
|
||||
std::atomic_bool is_directory{};
|
||||
std::string m_host_name;
|
||||
std::filesystem::path m_host_name;
|
||||
std::string m_guest_name;
|
||||
Common::FS::IOFile f;
|
||||
std::vector<DirEntry> dirents;
|
||||
|
@ -70,7 +70,7 @@ public:
|
|||
int CreateHandle();
|
||||
void DeleteHandle(int d);
|
||||
File* GetFile(int d);
|
||||
File* getFile(const std::string& host_name);
|
||||
File* GetFile(const std::filesystem::path& host_name);
|
||||
|
||||
private:
|
||||
std::vector<File*> m_files;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue