Files
dolphin/Source/Core/DiscIO/BannerLoader.cpp
T

30 lines
623 B
C++
Raw Normal View History

// Copyright 2013 Dolphin Emulator Project
// Licensed under GPLv2
// Refer to the license.txt file included.
2008-12-08 05:30:24 +00:00
2014-02-17 05:18:15 -05:00
#include "Common/FileUtil.h"
2008-12-08 05:30:24 +00:00
2014-02-17 05:18:15 -05:00
#include "DiscIO/BannerLoader.h"
#include "DiscIO/BannerLoaderGC.h"
#include "DiscIO/BannerLoaderWii.h"
#include "DiscIO/VolumeCreator.h"
2008-12-08 05:30:24 +00:00
namespace DiscIO
{
IBannerLoader* CreateBannerLoader(DiscIO::IFileSystem& _rFileSystem, DiscIO::IVolume *pVolume)
2008-12-08 05:30:24 +00:00
{
if (IsVolumeWiiDisc(pVolume) || IsVolumeWadFile(pVolume))
2008-12-08 05:30:24 +00:00
{
return new CBannerLoaderWii(pVolume);
}
2013-03-02 22:57:49 -06:00
if (_rFileSystem.IsValid())
{
2013-03-02 22:57:49 -06:00
return new CBannerLoaderGC(_rFileSystem, pVolume);
2008-12-08 05:30:24 +00:00
}
return NULL;
2008-12-08 05:30:24 +00:00
}
} // namespace