mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-11 05:26:24 +02:00
Introduce Path, start using it all over the place.
Still lots left to convert! Convert GetSysDirectory to return Path. More buildfixing Remove unnecessary Path( constructors
This commit is contained in:
1 parent
2987b8c17a
commit
025bcb1673
123 files changed
+1321
-949
No files matched your search
@@ -250,7 +250,7 @@ CChunkFileReader::Error CChunkFileReader::LoadFileHeader(File::IOFile &pFile, SC
|
||||
return ERROR_NONE;
|
||||
}
|
||||
|
||||
CChunkFileReader::Error CChunkFileReader::GetFileTitle(const std::string &filename, std::string *title) {
|
||||
CChunkFileReader::Error CChunkFileReader::GetFileTitle(const Path &filename, std::string *title) {
|
||||
if (!File::Exists(filename)) {
|
||||
ERROR_LOG(SAVESTATE, "ChunkReader: File doesn't exist");
|
||||
return ERROR_BAD_FILE;
|
||||
@@ -261,7 +261,7 @@ CChunkFileReader::Error CChunkFileReader::GetFileTitle(const std::string &filena
|
||||
return LoadFileHeader(pFile, header, title);
|
||||
}
|
||||
|
||||
CChunkFileReader::Error CChunkFileReader::LoadFile(const std::string &filename, std::string *gitVersion, u8 *&_buffer, size_t &sz, std::string *failureReason) {
|
||||
CChunkFileReader::Error CChunkFileReader::LoadFile(const Path &filename, std::string *gitVersion, u8 *&_buffer, size_t &sz, std::string *failureReason) {
|
||||
if (!File::Exists(filename)) {
|
||||
*failureReason = "LoadStateDoesntExist";
|
||||
ERROR_LOG(SAVESTATE, "ChunkReader: File doesn't exist");
|
||||
@@ -325,7 +325,7 @@ CChunkFileReader::Error CChunkFileReader::LoadFile(const std::string &filename,
|
||||
}
|
||||
|
||||
// Takes ownership of buffer.
|
||||
CChunkFileReader::Error CChunkFileReader::SaveFile(const std::string &filename, const std::string &title, const char *gitVersion, u8 *buffer, size_t sz) {
|
||||
CChunkFileReader::Error CChunkFileReader::SaveFile(const Path &filename, const std::string &title, const char *gitVersion, u8 *buffer, size_t sz) {
|
||||
INFO_LOG(SAVESTATE, "ChunkReader: Writing %s", filename.c_str());
|
||||
|
||||
File::IOFile pFile(filename, "wb");
|
||||
|
||||
Reference in new issue
Block a user