mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-05 22:47:03 +00:00
Improve TTY output
Use atomic variable to sync TTY size Implement console_putc (liblv2) Write plaintext instead of HTML Slightly improve performance Fix random line breaks in TTY
This commit is contained in:
parent
445b7c0758
commit
f056b2f4ab
6 changed files with 37 additions and 58 deletions
|
|
@ -1,15 +1,12 @@
|
|||
#include "stdafx.h"
|
||||
#include "Emu/Cell/lv2/sys_tty.h"
|
||||
#include "Emu/Cell/PPUModule.h"
|
||||
#include "Utilities/cfmt.h"
|
||||
#include <string.h>
|
||||
#include <ctype.h>
|
||||
|
||||
|
||||
|
||||
extern logs::channel sysPrxForUser;
|
||||
|
||||
extern fs::file g_tty;
|
||||
|
||||
// cfmt implementation (TODO)
|
||||
|
||||
using qsortcmp = s32(vm::cptr<void> e1, vm::cptr<void> e2);
|
||||
|
|
@ -420,10 +417,9 @@ s32 _sys_printf(ppu_thread& ppu, vm::cptr<char> fmt, ppu_va_args_t va_args)
|
|||
{
|
||||
sysPrxForUser.warning("_sys_printf(fmt=%s, ...)", fmt);
|
||||
|
||||
if (g_tty)
|
||||
{
|
||||
g_tty.write(ps3_fmt(ppu, fmt, va_args.count));
|
||||
}
|
||||
const auto buf = vm::make_str(ps3_fmt(ppu, fmt, va_args.count));
|
||||
|
||||
sys_tty_write(0, buf, buf.get_count() - 1, vm::var<u32>{});
|
||||
|
||||
return CELL_OK;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue