Skip to content

Commit 196624b

Browse files
committed
Fix typos in fs wrappers
1 parent 139e7bf commit 196624b

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

src/Cafe/TitleList/TitleInfo.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -185,11 +185,7 @@ bool TitleInfo::ParseWuaTitleFolderName(std::string_view name, TitleId& titleIdO
185185
bool TitleInfo::DetectFormat(const fs::path& path, fs::path& pathOut, TitleDataFormat& formatOut)
186186
{
187187
std::error_code ec;
188-
#if __ANDROID__
189-
if (path.has_extension() && FilesystemAndroid::isFile(path))
190-
#else
191188
if (path.has_extension() && cemu::fs::is_file(path, ec))
192-
#endif
193189
{
194190
std::string filenameStr = _pathToUtf8(path.filename());
195191
if (boost::iends_with(filenameStr, ".rpx"))

src/Common/precompiled.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,31 +111,31 @@ inline bool is_file(const std::filesystem::path& p)
111111
{
112112
#if __ANDROID__
113113
if (FilesystemAndroid::isContentUri(p))
114-
return FilesystemAndroid::isDirectory(p);
114+
return FilesystemAndroid::isFile(p);
115115
#endif // __ANDROID__
116116
return std::filesystem::is_regular_file(p);
117117
}
118118
inline bool is_file(const std::filesystem::path& p, std::error_code& ec)
119119
{
120120
#if __ANDROID__
121121
if (FilesystemAndroid::isContentUri(p))
122-
return FilesystemAndroid::isDirectory(p);
122+
return FilesystemAndroid::isFile(p);
123123
#endif // __ANDROID__
124124
return std::filesystem::is_regular_file(p, ec);
125125
}
126126
inline bool exists(const std::filesystem::path& p)
127127
{
128128
#if __ANDROID__
129129
if (FilesystemAndroid::isContentUri(p))
130-
return FilesystemAndroid::isDirectory(p);
130+
return FilesystemAndroid::exists(p);
131131
#endif // __ANDROID__
132132
return std::filesystem::exists(p);
133133
}
134134
inline bool exists(const std::filesystem::path& p, std::error_code& ec)
135135
{
136136
#if __ANDROID__
137137
if (FilesystemAndroid::isContentUri(p))
138-
return FilesystemAndroid::isDirectory(p);
138+
return FilesystemAndroid::exists(p);
139139
#endif // __ANDROID__
140140
return std::filesystem::exists(p, ec);
141141
}

0 commit comments

Comments
 (0)