mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 22:09:19 -07:00
d802d39281
and s/\bNULL\b/nullptr/g for *.cpp/h/mm files not compiled on my machine
34 lines
684 B
C++
34 lines
684 B
C++
// Copyright 2013 Dolphin Emulator Project
|
|
// Licensed under GPLv2
|
|
// Refer to the license.txt file included.
|
|
|
|
#include <cstddef>
|
|
|
|
#include "DiscIO/BannerLoader.h"
|
|
#include "DiscIO/BannerLoaderGC.h"
|
|
#include "DiscIO/BannerLoaderWii.h"
|
|
#include "DiscIO/Filesystem.h"
|
|
#include "DiscIO/VolumeCreator.h"
|
|
|
|
namespace DiscIO
|
|
{
|
|
|
|
class IBannerLoader;
|
|
class IVolume;
|
|
|
|
IBannerLoader* CreateBannerLoader(DiscIO::IFileSystem& _rFileSystem, DiscIO::IVolume *pVolume)
|
|
{
|
|
if (IsVolumeWiiDisc(pVolume) || IsVolumeWadFile(pVolume))
|
|
{
|
|
return new CBannerLoaderWii(pVolume);
|
|
}
|
|
if (_rFileSystem.IsValid())
|
|
{
|
|
return new CBannerLoaderGC(_rFileSystem, pVolume);
|
|
}
|
|
|
|
return nullptr;
|
|
}
|
|
|
|
} // namespace
|