oops, that wasn't supposed to be deleted

This commit is contained in:
CasualPokePlayer 2023-09-17 02:01:43 -07:00
parent 178939f76c
commit 871c2bba8f
3 changed files with 17 additions and 32 deletions

Binary file not shown.

View File

@ -1,32 +0,0 @@
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "BizConfig.h"
namespace Config
{
std::string BIOS9Path = "bios9.rom";
std::string BIOS7Path = "bios7.rom";
std::string FirmwarePath = "firmware.bin";
std::string DSiBIOS9Path = "bios9i.rom";
std::string DSiBIOS7Path = "bios7i.rom";
std::string DSiFirmwarePath = "firmwarei.bin";
std::string DSiNANDPath = "nand.bin";
bool DLDIEnable = false;
std::string DLDISDPath = "";
int DLDISize = 0;
bool DLDIReadOnly = true;
bool DLDIFolderSync = false;
std::string DLDIFolderPath = "";
bool DSiSDEnable = false;
std::string DSiSDPath = "";
int DSiSDSize = 0;
bool DSiSDReadOnly = true;
bool DSiSDFolderSync = false;
std::string DSiSDFolderPath = "";
}

View File

@ -38,6 +38,23 @@ ECL_EXPORT void SetTraceCallback(void (*callback)(TraceMask_t mask, u32 opcode,
TraceMask = callback ? mask : TRACE_NONE;
}
ECL_EXPORT void GetDisassembly(TraceMask_t type, u32 opcode, char* ret)
{
static char disasm[DTHUMB_STRING_LENGTH];
memset(disasm, 0, sizeof disasm);
switch (type)
{
case TRACE_ARM7_THUMB: Disassemble_thumb(opcode, disasm, ARMv4T); break;
case TRACE_ARM7_ARM: Disassemble_arm(opcode, disasm, ARMv4T); break;
case TRACE_ARM9_THUMB: Disassemble_thumb(opcode, disasm, ARMv5TE); break;
case TRACE_ARM9_ARM: Disassemble_arm(opcode, disasm, ARMv5TE); break;
default: __builtin_unreachable();
}
memcpy(ret, disasm, DTHUMB_STRING_LENGTH);
}
void TraceTrampoline(TraceMask_t type, u32* regs, u32 opcode)
{
static char disasm[DTHUMB_STRING_LENGTH];