2013-04-18 02:43:11 +00: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 18:54:46 +00:00
|
|
|
#pragma once
|
2008-12-08 04:46:09 +00:00
|
|
|
|
|
|
|
#include <string>
|
2014-02-17 10:18:15 +00: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
|
|
|
|
|
|
|
u32 Read32(u64 _Offset);
|
|
|
|
bool ReadToPtr(u8* ptr, u64 _dwOffset, u64 _dwLength);
|
2009-02-22 13:59:06 +00:00
|
|
|
bool RAWReadToPtr(u8* ptr, u64 _dwOffset, u64 _dwLength);
|
2008-12-08 04:46:09 +00:00
|
|
|
|
|
|
|
bool IsValid();
|
|
|
|
bool IsWii();
|
|
|
|
|
|
|
|
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
|