Updated meta.xml + fixed some indenting in xdk360_video.cpp

This commit is contained in:
Twinaphex 2012-04-13 03:23:23 +02:00
parent 3e2769d199
commit 9db2a51a81
2 changed files with 20 additions and 20 deletions

View File

@ -46,41 +46,41 @@ struct hlsl_program_t
struct XPR_HEADER struct XPR_HEADER
{ {
unsigned long dwMagic; unsigned long dwMagic;
unsigned long dwHeaderSize; unsigned long dwHeaderSize;
unsigned long dwDataSize; unsigned long dwDataSize;
}; };
#define XPR2_MAGIC_VALUE (0x58505232) #define XPR2_MAGIC_VALUE (0x58505232)
PackedResource::PackedResource() PackedResource::PackedResource()
{ {
m_pSysMemData = NULL; m_pSysMemData = NULL;
m_dwSysMemDataSize = 0L; m_dwSysMemDataSize = 0L;
m_pVidMemData = NULL; m_pVidMemData = NULL;
m_dwVidMemDataSize = 0L; m_dwVidMemDataSize = 0L;
m_pResourceTags = NULL; m_pResourceTags = NULL;
m_dwNumResourceTags = 0L; m_dwNumResourceTags = 0L;
m_bInitialized = FALSE; m_bInitialized = FALSE;
} }
PackedResource::~PackedResource() PackedResource::~PackedResource()
{ {
Destroy(); Destroy();
} }
void * PackedResource::GetData( const char * strName ) const void * PackedResource::GetData( const char * strName ) const
{ {
if( m_pResourceTags == NULL || strName == NULL ) if( m_pResourceTags == NULL || strName == NULL )
return NULL; return NULL;
for( unsigned long i = 0; i < m_dwNumResourceTags; i++ ) for( unsigned long i = 0; i < m_dwNumResourceTags; i++ )
{ {
if( !_stricmp( strName, m_pResourceTags[i].strName ) ) if( !_stricmp( strName, m_pResourceTags[i].strName ) )
return &m_pSysMemData[m_pResourceTags[i].dwOffset]; return &m_pSysMemData[m_pResourceTags[i].dwOffset];
} }
return NULL; return NULL;
} }
HRESULT PackedResource::Create( const char * strFilename ) HRESULT PackedResource::Create( const char * strFilename )

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<app version="1"> <app version="1">
<name>SSNES</name> <name>SSNES</name>
<coder>Themaister</coder> <coder>Themaister, Squarepusher2</coder>
<version>0.9.5</version> <version>0.9.5</version>
<release_date>2012</release_date> <release_date>2012</release_date>
<short_description>Multi-system emulator</short_description> <short_description>Multi-system emulator</short_description>