mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-15 11:18:29 +12:00
Logging: Restructure menu + allow toggeling APIErrors logtype
The logtype "APIErrors" previously was always enabled. This option is intended to help homebrew developers notice mistakes in how they use CafeOS API. But some commercial games trigger these a lot and cause log.txt bloat (e.g. seen in XCX). Thus this commit changes it so that it's off by default and instead can be toggled if desired. Additionally in this commit: - COS module logging options are no longer translatable (our debug logging is fundamentally English) - Restructured the log menu and moved the logging options that are mainly of interest to Cemu devs into a separate submenu
This commit is contained in:
parent
5f825a1fa8
commit
16070458ed
7 changed files with 32 additions and 32 deletions
|
@ -154,14 +154,6 @@ namespace GX2
|
|||
return gx2WriteGatherPipe.displayListStart[coreIndex] != MPTR_NULL;
|
||||
}
|
||||
|
||||
bool GX2WriteGather_isDisplayListActive()
|
||||
{
|
||||
uint32 coreIndex = coreinit::OSGetCoreId();
|
||||
if (gx2WriteGatherPipe.displayListStart[coreIndex] != MPTR_NULL)
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
uint32 GX2WriteGather_getReadWriteDistance()
|
||||
{
|
||||
uint32 coreIndex = sGX2MainCoreIndex;
|
||||
|
|
|
@ -84,8 +84,6 @@ inline void gx2WriteGather_submit(Targs... args)
|
|||
|
||||
namespace GX2
|
||||
{
|
||||
|
||||
bool GX2WriteGather_isDisplayListActive();
|
||||
uint32 GX2WriteGather_getReadWriteDistance();
|
||||
void GX2WriteGather_checkAndInsertWrapAroundMark();
|
||||
|
||||
|
@ -96,6 +94,8 @@ namespace GX2
|
|||
void GX2CallDisplayList(MPTR addr, uint32 size);
|
||||
void GX2DirectCallDisplayList(void* addr, uint32 size);
|
||||
|
||||
bool GX2GetDisplayListWriteStatus();
|
||||
|
||||
void GX2Init_writeGather();
|
||||
void GX2CommandInit();
|
||||
void GX2CommandResetToDefaultState();
|
||||
|
|
|
@ -291,8 +291,7 @@ void gx2Export_GX2SetDefaultState(PPCInterpreter_t* hCPU)
|
|||
void _GX2ContextCreateRestoreStateDL(GX2ContextState_t* gx2ContextState)
|
||||
{
|
||||
// begin display list
|
||||
if (GX2::GX2WriteGather_isDisplayListActive())
|
||||
assert_dbg();
|
||||
cemu_assert_debug(!GX2::GX2GetDisplayListWriteStatus()); // must not already be writing to a display list
|
||||
GX2::GX2BeginDisplayList((void*)gx2ContextState->loadDL_buffer, sizeof(gx2ContextState->loadDL_buffer));
|
||||
_GX2Context_WriteCmdRestoreState(gx2ContextState, 0);
|
||||
uint32 displayListSize = GX2::GX2EndDisplayList((void*)gx2ContextState->loadDL_buffer);
|
||||
|
|
|
@ -426,7 +426,7 @@ namespace GX2
|
|||
}
|
||||
if((aluRegisterOffset+sizeInU32s) > 0x400)
|
||||
{
|
||||
cemuLog_logOnce(LogType::APIErrors, "GX2SetVertexUniformReg values are out of range (offset {} + size {} must be equal or smaller than 0x400)", aluRegisterOffset, sizeInU32s);
|
||||
cemuLog_logOnce(LogType::APIErrors, "GX2SetVertexUniformReg values are out of range (offset {} + size {} must be equal or smaller than 1024)", aluRegisterOffset, sizeInU32s);
|
||||
}
|
||||
if( (sizeInU32s&3) != 0)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue