mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-19 09:19:05 +02:00
Common: Cleanup some Path constructions.
This commit is contained in:
1 parent
2a9170a2ea
commit
d376e67f87
13 files changed
+21
-22
No files matched your search
@@ -696,7 +696,7 @@ void ReplacedTexture::Load(int level, void *out, int rowPitch) {
|
||||
png_image png = {};
|
||||
png.version = PNG_IMAGE_VERSION;
|
||||
|
||||
FILE *fp = File::OpenCFile(Path(info.file), "rb");
|
||||
FILE *fp = File::OpenCFile(info.file, "rb");
|
||||
if (!png_image_begin_read_from_stdio(&png, fp)) {
|
||||
ERROR_LOG(G3D, "Could not load texture replacement info: %s - %s", info.file.c_str(), png.message);
|
||||
return;
|
||||
@@ -733,7 +733,7 @@ bool TextureReplacer::GenerateIni(const std::string &gameID, Path &generatedFile
|
||||
if (gameID.empty())
|
||||
return false;
|
||||
|
||||
Path texturesDirectory = Path(GetSysDirectory(DIRECTORY_TEXTURES)) / gameID;
|
||||
Path texturesDirectory = GetSysDirectory(DIRECTORY_TEXTURES) / gameID;
|
||||
if (!File::Exists(texturesDirectory)) {
|
||||
File::CreateFullPath(texturesDirectory);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user