2015-05-24 06:55:12 +02:00
|
|
|
// Copyright 2008 Dolphin Emulator Project
|
2015-05-18 01:08:10 +02:00
|
|
|
// Licensed under GPLv2+
|
2013-04-17 23:09:55 -04:00
|
|
|
// Refer to the license.txt file included.
|
2008-12-08 04:46:09 +00:00
|
|
|
|
2014-02-10 13:54:46 -05:00
|
|
|
#pragma once
|
2008-12-08 04:46:09 +00:00
|
|
|
|
2015-12-06 23:15:51 -05:00
|
|
|
#include <memory>
|
2014-02-21 01:47:53 +01:00
|
|
|
#include <string>
|
|
|
|
|
|
|
|
#include "Common/CommonTypes.h"
|
2008-12-08 04:46:09 +00:00
|
|
|
|
|
|
|
namespace DiscIO
|
|
|
|
{
|
2014-02-21 01:47:53 +01:00
|
|
|
|
|
|
|
class IVolume;
|
2014-05-29 03:38:39 -07:00
|
|
|
class IBlobReader;
|
2014-02-21 01:47:53 +01:00
|
|
|
|
2015-12-06 23:15:51 -05:00
|
|
|
std::unique_ptr<IVolume> CreateVolumeFromFilename(const std::string& filename, u32 partition_group = 0, u32 volume_number = -1);
|
|
|
|
std::unique_ptr<IVolume> CreateVolumeFromDirectory(const std::string& directory, bool is_wii, const std::string& apploader = "", const std::string& dol = "");
|
2015-08-31 19:30:32 -04:00
|
|
|
void VolumeKeyForPartition(IBlobReader& _rReader, u64 offset, u8* VolumeKey);
|
2014-02-21 01:47:53 +01:00
|
|
|
|
2008-12-08 04:46:09 +00:00
|
|
|
} // namespace
|