2013-04-17 22:43:11 -04:00
|
|
|
// Copyright 2013 Dolphin Emulator Project
|
|
|
|
|
// Licensed under GPLv2
|
|
|
|
|
// Refer to the license.txt file included.
|
2008-12-08 04:46:09 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
// Disc volume handler. It's here because Wii discs can consist of multiple volumes.
|
|
|
|
|
// GC discs are seen as one big volume.
|
|
|
|
|
|
2014-02-10 13:54:46 -05:00
|
|
|
#pragma once
|
2008-12-08 04:46:09 +00:00
|
|
|
|
|
|
|
|
#include <string>
|
2014-02-17 05:18:15 -05:00
|
|
|
|
|
|
|
|
#include "Common/CommonTypes.h"
|
|
|
|
|
#include "DiscIO/Volume.h"
|
2008-12-08 04:46:09 +00:00
|
|
|
|
|
|
|
|
namespace VolumeHandler
|
|
|
|
|
{
|
|
|
|
|
|
2008-12-23 08:47:37 +00:00
|
|
|
bool SetVolumeName(const std::string& _rFullPath);
|
2009-12-10 09:16:10 +00:00
|
|
|
void SetVolumeDirectory(const std::string& _rFullPath, bool _bIsWii, const std::string& _rApploader = "", const std::string& _rDOL = "");
|
2008-12-08 04:46:09 +00:00
|
|
|
|
2014-12-28 10:35:48 +01:00
|
|
|
// decrypt parameter must be false if not reading a Wii disc
|
|
|
|
|
u32 Read32(u64 _Offset, bool decrypt);
|
|
|
|
|
// decrypt parameter must be false if not reading a Wii disc
|
|
|
|
|
bool ReadToPtr(u8* ptr, u64 _dwOffset, u64 _dwLength, bool decrypt);
|
2008-12-08 04:46:09 +00:00
|
|
|
|
|
|
|
|
bool IsValid();
|
2015-01-17 13:21:02 +01:00
|
|
|
bool IsWiiDisc();
|
2008-12-08 04:46:09 +00:00
|
|
|
|
|
|
|
|
DiscIO::IVolume *GetVolume();
|
|
|
|
|
|
2009-06-08 00:14:48 +00:00
|
|
|
void EjectVolume();
|
|
|
|
|
|
2010-04-08 16:59:35 +00:00
|
|
|
} // end of namespace VolumeHandler
|