2013-04-17 21:09:55 -06:00
|
|
|
// Copyright 2013 Dolphin Emulator Project
|
|
|
|
// Licensed under GPLv2
|
|
|
|
// Refer to the license.txt file included.
|
2008-12-07 21:46:09 -07:00
|
|
|
|
2014-02-10 11:54:46 -07:00
|
|
|
#pragma once
|
2008-12-07 21:46:09 -07:00
|
|
|
|
2014-02-20 17:47:53 -07:00
|
|
|
#include <string>
|
|
|
|
|
|
|
|
#include "Common/CommonTypes.h"
|
2008-12-07 21:46:09 -07:00
|
|
|
|
|
|
|
namespace DiscIO
|
|
|
|
{
|
2014-02-20 17:47:53 -07:00
|
|
|
|
|
|
|
class IVolume;
|
2014-05-29 04:38:39 -06:00
|
|
|
class IBlobReader;
|
2014-02-20 17:47:53 -07:00
|
|
|
|
2009-05-21 18:36:44 -06:00
|
|
|
IVolume* CreateVolumeFromFilename(const std::string& _rFilename, u32 _PartitionGroup = 0, u32 _VolumeNum = -1);
|
2009-12-10 02:16:10 -07:00
|
|
|
IVolume* CreateVolumeFromDirectory(const std::string& _rDirectory, bool _bIsWii, const std::string& _rApploader = "", const std::string& _rDOL = "");
|
2008-12-07 21:46:09 -07:00
|
|
|
bool IsVolumeWiiDisc(const IVolume *_rVolume);
|
2009-06-06 20:54:07 -06:00
|
|
|
bool IsVolumeWadFile(const IVolume *_rVolume);
|
2014-05-29 04:38:39 -06:00
|
|
|
void VolumeKeyForParition(IBlobReader& _rReader, u64 offset, u8* VolumeKey);
|
2014-02-20 17:47:53 -07:00
|
|
|
|
2008-12-07 21:46:09 -07:00
|
|
|
} // namespace
|