mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-09-23 12:55:47 +02:00
Games hang though (probably due to unknown ES call) -/dev/di IPC: Cleaned up code and fixed a bug (which I used to accidentally find out what I did), added Volume eject feature for VolumeHandler. -Partially documented Wii DVD cover flags. -Files opened in Wii Read-Write mode are now set to append. -Removed annoying overhead-ish "Idle" log message. As for /dev/di: Someone clearly didn't know what he was doing in that file. Someone freed memory which didn't belong to that file and then complained about a crash. Needless to say the problem is now solved. Big TODO on the /dev/di code though, ExecuteCommand is practically doing nothing but reading. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3365 8ced0084-cf51-0410-be5f-012b33b47a6e
50 lines
1.4 KiB
C++
50 lines
1.4 KiB
C++
// Copyright (C) 2003-2009 Dolphin Project.
|
|
|
|
// This program is free software: you can redistribute it and/or modify
|
|
// it under the terms of the GNU General Public License as published by
|
|
// the Free Software Foundation, version 2.0.
|
|
|
|
// This program is distributed in the hope that it will be useful,
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
// GNU General Public License 2.0 for more details.
|
|
|
|
// A copy of the GPL 2.0 should have been included with the program.
|
|
// If not, see http://www.gnu.org/licenses/
|
|
|
|
// Official SVN repository and contact information can be found at
|
|
// http://code.google.com/p/dolphin-emu/
|
|
|
|
// Disc volume handler. It's here because Wii discs can consist of multiple volumes.
|
|
// GC discs are seen as one big volume.
|
|
|
|
#ifndef _VOLUMEHANDLER_H_
|
|
#define _VOLUMEHANDLER_H_
|
|
|
|
#include <string>
|
|
#include "CommonTypes.h"
|
|
#include "Volume.h"
|
|
|
|
namespace VolumeHandler
|
|
{
|
|
|
|
bool SetVolumeName(const std::string& _rFullPath);
|
|
void SetVolumeDirectory(const std::string& _rFullPath, bool _bIsWii);
|
|
|
|
u32 Read32(u64 _Offset);
|
|
bool ReadToPtr(u8* ptr, u64 _dwOffset, u64 _dwLength);
|
|
bool RAWReadToPtr(u8* ptr, u64 _dwOffset, u64 _dwLength);
|
|
|
|
bool GetTMDOffset(u32 _Partition, u64& _Offset);
|
|
|
|
bool IsValid();
|
|
bool IsWii();
|
|
|
|
DiscIO::IVolume *GetVolume();
|
|
|
|
void EjectVolume();
|
|
|
|
} // namespace
|
|
|
|
#endif
|