dolphin/Source/Core/DiscIO/BannerLoader.cpp

30 lines
588 B
C++
Raw Normal View History

// 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);
}
2013-03-02 21:57:49 -07:00
if (_rFileSystem.IsValid())
{
2013-03-02 21:57:49 -07:00
return new CBannerLoaderGC(_rFileSystem, pVolume);
}
return NULL;
}
} // namespace