mirror of
https://github.com/yuzu-mirror/yuzu.git
synced 2024-11-03 10:19:59 +00:00
Place in anonymous namespace
This commit is contained in:
parent
6cfff2c3f6
commit
a5af1161c9
1 changed files with 4 additions and 0 deletions
|
@ -23,6 +23,8 @@
|
||||||
|
|
||||||
namespace Loader {
|
namespace Loader {
|
||||||
|
|
||||||
|
namespace {
|
||||||
|
|
||||||
template <Common::IsBaseOf<AppLoader> T>
|
template <Common::IsBaseOf<AppLoader> T>
|
||||||
std::optional<FileType> IdentifyFileLoader(FileSys::VirtualFile file) {
|
std::optional<FileType> IdentifyFileLoader(FileSys::VirtualFile file) {
|
||||||
const auto file_type = T::IdentifyType(file);
|
const auto file_type = T::IdentifyType(file);
|
||||||
|
@ -32,6 +34,8 @@ std::optional<FileType> IdentifyFileLoader(FileSys::VirtualFile file) {
|
||||||
return std::nullopt;
|
return std::nullopt;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
} // namespace
|
||||||
|
|
||||||
FileType IdentifyFile(FileSys::VirtualFile file) {
|
FileType IdentifyFile(FileSys::VirtualFile file) {
|
||||||
if (const auto romdir_type = IdentifyFileLoader<AppLoader_DeconstructedRomDirectory>(file)) {
|
if (const auto romdir_type = IdentifyFileLoader<AppLoader_DeconstructedRomDirectory>(file)) {
|
||||||
return *romdir_type;
|
return *romdir_type;
|
||||||
|
|
Loading…
Reference in a new issue