DVDInterface: Prepare for reading DTK data in DVDThread

This commit is contained in:
JosJuice
2016-08-13 16:23:36 +02:00
parent aabb17b7c9
commit 28bfd52d3a
4 changed files with 119 additions and 59 deletions

View File

@ -5,6 +5,7 @@
#pragma once
#include <string>
#include <vector>
#include "Common/CommonTypes.h"
@ -92,6 +93,13 @@ enum DIInterruptType : int
INT_CVRINT = 3,
};
enum class ReplyType : u32
{
Interrupt,
IOS_HLE,
DTK
};
void Init();
void Shutdown();
void DoState(PointerWrap& p);
@ -115,6 +123,7 @@ void ChangeDiscAsCPU(const std::string& new_path); // Can only be called by th
bool ChangePartition(u64 offset);
void ExecuteCommand(u32 command_0, u32 command_1, u32 command_2, u32 output_address,
u32 output_length, bool reply_to_ios);
void FinishExecutingCommand(bool reply_to_ios, DIInterruptType interrupt_type);
void FinishExecutingCommand(ReplyType reply_type, DIInterruptType interrupt_type, s64 cycles_late,
const std::vector<u8>& data = std::vector<u8>());
} // end of namespace DVDInterface