Fix Debug Build Again

This commit is contained in:
RadWolfie 2017-11-07 01:38:06 -06:00
parent d709723e9d
commit 1be02b4a44
2 changed files with 29 additions and 32 deletions

View File

@ -1836,20 +1836,18 @@ static DWORD WINAPI EmuCreateDeviceProxy(LPVOID)
g_bSupportsYUY2Overlay = g_bSupportsTextureFormat[XTL::X_D3DFMT_YUY2];
// check for YUY2 overlay support TODO: accept other overlay types
{
if(!g_bSupportsYUY2Overlay)
{
if (!g_bSupportsYUY2Overlay)
EmuWarning("YUY2 overlays are not supported in hardware, could be slow!");
else
{
// Does the user want to use Hardware accelerated YUV surfaces?
if (g_XBVideo.GetHardwareYUV())
DbgPrintf("EmuD3D8: Hardware accelerated YUV surfaces Enabled...\n");
else
{
g_bSupportsYUY2Overlay = false;
DbgPrintf("EmuD3D8: Hardware accelerated YUV surfaces Disabled...\n");
}
}
else {
// Does the user want to use Hardware accelerated YUV surfaces?
if (g_XBVideo.GetHardwareYUV()) {
DbgPrintf("EmuD3D8: Hardware accelerated YUV surfaces Enabled...\n");
} else {
g_bSupportsYUY2Overlay = false;
DbgPrintf("EmuD3D8: Hardware accelerated YUV surfaces Disabled...\n");
}
}
}
// initialize primary surface

View File

@ -411,28 +411,27 @@ void EmuGenerateFS(Xbe::TLS *pTLS, void *pTLSData)
}
#ifdef _DEBUG_TRACE
// dump raw TLS data
if (pNewTLS == nullptr)
DbgPrintf("KRNL: TLS Non-Existant (OK)\n");
else
{
DbgPrintf("KRNL: TLS Data Dump...\n");
if (g_bPrintfOn)
{
for (uint32 v = 0; v < dwCopySize; v++) // Note : Don't dump dwZeroSize
{
uint08 *bByte = (uint08*)pNewTLS + v;
// dump raw TLS data
if (pNewTLS == nullptr) {
DbgPrintf("KRNL: TLS Non-Existant (OK)\n");
} else {
DbgPrintf("KRNL: TLS Data Dump...\n");
if (g_bPrintfOn) {
for (uint32 v = 0; v < dwCopySize; v++) {// Note : Don't dump dwZeroSize
if (v % 0x10 == 0)
DbgPrintf("KRNL: 0x%.8X:", (xbaddr)bByte);
uint08 *bByte = (uint08*)pNewTLS + v;
// Note : Use printf instead of DbgPrintf here, which prefixes with GetCurrentThreadId() :
printf(" %.2X", *bByte);
}
if (v % 0x10 == 0) {
DbgPrintf("KRNL: 0x%.8X:", (xbaddr)bByte);
}
printf("\n");
}
}
// Note : Use printf instead of DbgPrintf here, which prefixes with GetCurrentThreadId() :
printf(" %.2X", *bByte);
}
printf("\n");
}
}
#endif
}