Debug console emulation

This commit is contained in:
eladash 2018-11-21 13:55:12 +02:00 committed by Ani
parent 2ea061b9c7
commit 79a6a2c7fb
3 changed files with 10 additions and 1 deletions

View File

@ -1526,6 +1526,12 @@ void ppu_load_exec(const ppu_exec_object& elf)
mem_size = 0xC800000;
}
if (g_cfg.core.debug_console_mode)
{
// TODO: Check for all sdk versions
mem_size += 0xC000000;
}
fxm::make_always<lv2_memory_container>(mem_size);
ppu->cmd_push({ppu_cmd::initialize, 0});

View File

@ -1,4 +1,6 @@
#include "stdafx.h"
#include "Emu/System.h"
#include "sys_tty.h"
#include <deque>
@ -15,7 +17,7 @@ error_code sys_tty_read(s32 ch, vm::ptr<char> buf, u32 len, vm::ptr<u32> preadle
{
sys_tty.trace("sys_tty_read(ch=%d, buf=*0x%x, len=%d, preadlen=*0x%x)", ch, buf, len, preadlen);
if (false) // TODO: debug mode check
if (!g_cfg.core.debug_console_mode)
{
return CELL_EIO;
}

View File

@ -380,6 +380,7 @@ struct cfg_root : cfg::node
cfg::_bool spu_accurate_xfloat{this, "Accurate xfloat", false};
cfg::_bool spu_approx_xfloat{this, "Approximate xfloat", true};
cfg::_bool debug_console_mode{this, "Debug Console Mode", false}; // Debug console emulation, not recommended
cfg::_enum<lib_loading_type> lib_loading{this, "Lib Loader", lib_loading_type::liblv2only};
cfg::_bool hook_functions{this, "Hook static functions"};
cfg::set_entry load_libraries{this, "Load libraries"};