Common: Cleanup some Path constructions.

This commit is contained in:
Unknown W. Brackets committed 2021-05-14 22:48:04 -07:00
1 parent 2a9170a2ea
commit d376e67f87
13 files changed
+21 -22

No files matched your search

+2 -2
View File
@@ -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);
}