mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 22:09:19 -07:00
37 lines
580 B
C++
37 lines
580 B
C++
// Copyright 2013 Dolphin Emulator Project
|
|
// Licensed under GPLv2
|
|
// Refer to the license.txt file included.
|
|
|
|
#include "DiscIO/Filesystem.h"
|
|
#include "DiscIO/FileSystemGCWii.h"
|
|
|
|
namespace DiscIO
|
|
{
|
|
|
|
IFileSystem::IFileSystem(const IVolume *_rVolume)
|
|
: m_rVolume(_rVolume)
|
|
{}
|
|
|
|
|
|
IFileSystem::~IFileSystem()
|
|
{}
|
|
|
|
|
|
IFileSystem* CreateFileSystem(const IVolume* _rVolume)
|
|
{
|
|
IFileSystem* pFileSystem = new CFileSystemGCWii(_rVolume);
|
|
|
|
if (!pFileSystem)
|
|
return 0;
|
|
|
|
if (!pFileSystem->IsValid())
|
|
{
|
|
delete pFileSystem;
|
|
pFileSystem = NULL;
|
|
}
|
|
|
|
return pFileSystem;
|
|
}
|
|
|
|
} // namespace
|