mirror of
https://github.com/libretro/RetroArch
synced 2025-02-25 12:41:18 +00:00
(360) Font subsystem works again - font crap needs to be badly
refactored
This commit is contained in:
parent
e871f9523f
commit
f8ad3dcc91
@ -108,6 +108,7 @@ const DWORD g_MapLinearToSrgbGpuFormat[] =
|
||||
|
||||
struct XPR_HEADER
|
||||
{
|
||||
unsigned long dwMagic;
|
||||
unsigned long dwHeaderSize;
|
||||
unsigned long dwDataSize;
|
||||
};
|
||||
@ -164,6 +165,13 @@ HRESULT PackedResource::Create( const char * strFilename )
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
if( xprh.dwMagic != XPR2_MAGIC_VALUE )
|
||||
{
|
||||
RARCH_ERR( "Invalid Xbox Packed Resource (.xpr) file: Magic = 0x%08lx.\n", xprh.dwMagic );
|
||||
CloseHandle( hFile );
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
// Compute memory requirements
|
||||
m_dwSysMemDataSize = xprh.dwHeaderSize;
|
||||
m_dwVidMemDataSize = xprh.dwDataSize;
|
||||
|
Loading…
x
Reference in New Issue
Block a user