2015-05-24 06:55:12 +02:00
|
|
|
// Copyright 2008 Dolphin Emulator Project
|
2015-05-18 01:08:10 +02:00
|
|
|
// Licensed under GPLv2+
|
2013-04-17 22:43:11 -04:00
|
|
|
// Refer to the license.txt file included.
|
2008-12-08 04:46:09 +00:00
|
|
|
|
2013-04-17 22:43:11 -04:00
|
|
|
// Purpose: uncompress the dumps from costis GC-Debugger tool
|
2008-12-08 04:46:09 +00:00
|
|
|
//
|
|
|
|
//
|
2014-02-10 13:54:46 -05:00
|
|
|
#pragma once
|
2008-12-08 04:46:09 +00:00
|
|
|
|
2014-03-12 15:33:41 -04:00
|
|
|
#include <string>
|
2014-09-07 20:06:58 -05:00
|
|
|
#include "Common/CommonTypes.h"
|
2008-12-08 04:46:09 +00:00
|
|
|
|
|
|
|
class CDump
|
|
|
|
{
|
|
|
|
public:
|
2016-06-24 10:43:46 +02:00
|
|
|
CDump(const std::string& filename);
|
|
|
|
~CDump();
|
2008-12-08 04:46:09 +00:00
|
|
|
|
2016-06-24 10:43:46 +02:00
|
|
|
int GetNumberOfSteps();
|
|
|
|
u32 GetGPR(int _step, int _gpr);
|
|
|
|
u32 GetPC(int _step);
|
2008-12-08 04:46:09 +00:00
|
|
|
|
|
|
|
private:
|
2016-06-24 10:43:46 +02:00
|
|
|
enum
|
|
|
|
{
|
|
|
|
OFFSET_GPR = 0x4,
|
|
|
|
OFFSET_PC = 0x194,
|
|
|
|
STRUCTUR_SIZE = 0x2BC
|
|
|
|
};
|
2008-12-08 04:46:09 +00:00
|
|
|
|
2016-06-24 10:43:46 +02:00
|
|
|
u8* m_pData;
|
2008-12-08 04:46:09 +00:00
|
|
|
|
2016-06-24 10:43:46 +02:00
|
|
|
size_t m_size;
|
2008-12-08 04:46:09 +00:00
|
|
|
|
2016-06-24 10:43:46 +02:00
|
|
|
u32 Read32(u32 _pos);
|
2008-12-08 04:46:09 +00:00
|
|
|
};
|