mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 05:47:56 -07:00
30 lines
588 B
C++
30 lines
588 B
C++
// Copyright 2013 Dolphin Emulator Project
|
|
// Licensed under GPLv2
|
|
// Refer to the license.txt file included.
|
|
|
|
#include "BannerLoader.h"
|
|
#include "BannerLoaderWii.h"
|
|
#include "BannerLoaderGC.h"
|
|
|
|
#include "VolumeCreator.h"
|
|
#include "FileUtil.h"
|
|
|
|
namespace DiscIO
|
|
{
|
|
|
|
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 NULL;
|
|
}
|
|
|
|
} // namespace
|