mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-02-01 12:03:15 +00:00
This removes wrappers for ES_DIVerify and ES::LoadWAD. They are not really useful as we can simply call the ES function directly, and it is actually somewhat confusing because both functions are static and are not tied to a particular ES instance.
90 lines
1.8 KiB
C++
90 lines
1.8 KiB
C++
// Copyright 2008 Dolphin Emulator Project
|
|
// Licensed under GPLv2+
|
|
// Refer to the license.txt file included.
|
|
|
|
#pragma once
|
|
|
|
#include <memory>
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
#include "Common/CommonTypes.h"
|
|
#include "Core/CoreTiming.h"
|
|
#include "Core/HW/SystemTimers.h"
|
|
|
|
class PointerWrap;
|
|
|
|
namespace DiscIO
|
|
{
|
|
class CNANDContentLoader;
|
|
}
|
|
|
|
namespace IOS
|
|
{
|
|
namespace HLE
|
|
{
|
|
namespace Device
|
|
{
|
|
class Device;
|
|
}
|
|
|
|
struct Request;
|
|
|
|
struct IPCCommandResult
|
|
{
|
|
s32 return_value;
|
|
bool send_reply;
|
|
u64 reply_delay_ticks;
|
|
};
|
|
|
|
enum IPCCommandType : u32
|
|
{
|
|
IPC_CMD_OPEN = 1,
|
|
IPC_CMD_CLOSE = 2,
|
|
IPC_CMD_READ = 3,
|
|
IPC_CMD_WRITE = 4,
|
|
IPC_CMD_SEEK = 5,
|
|
IPC_CMD_IOCTL = 6,
|
|
IPC_CMD_IOCTLV = 7,
|
|
// This is used for replies to commands.
|
|
IPC_REPLY = 8,
|
|
};
|
|
|
|
// Init events and devices
|
|
void Init();
|
|
// Reset all events and devices (and optionally clear them)
|
|
void Reset(bool clear_devices = false);
|
|
// Shutdown
|
|
void Shutdown();
|
|
|
|
// Reload IOS (to a possibly different version); write the new version to 0x3140 and set up devices.
|
|
bool Reload(u64 ios_title_id);
|
|
u32 GetVersion();
|
|
|
|
bool BootstrapPPC(const DiscIO::CNANDContentLoader& content_loader);
|
|
|
|
// Do State
|
|
void DoState(PointerWrap& p);
|
|
|
|
void SDIO_EventNotify();
|
|
|
|
std::shared_ptr<Device::Device> GetDeviceByName(const std::string& device_name);
|
|
std::shared_ptr<Device::Device> AccessDeviceByID(u32 id);
|
|
|
|
// Update
|
|
void Update();
|
|
|
|
// Update Devices
|
|
void UpdateDevices();
|
|
|
|
void UpdateWantDeterminism(bool new_want_determinism);
|
|
|
|
void ExecuteCommand(u32 address);
|
|
|
|
void EnqueueRequest(u32 address);
|
|
void EnqueueReply(const Request& request, s32 return_value, int cycles_in_future = 0,
|
|
CoreTiming::FromThread from = CoreTiming::FromThread::CPU);
|
|
void EnqueueCommandAcknowledgement(u32 address, int cycles_in_future = 0);
|
|
} // namespace HLE
|
|
} // namespace IOS
|