mirror of
https://github.com/simtactics/mysimulation.git
synced 2025-07-12 17:22:26 -04:00
Client: Separated the LoginScreen scene away from Scene.hpp, so it's compiled once as its own translation unit.
FileHandler: Added read support for XA, UTK, and MP3 to File::ReadSoundFile.
This commit is contained in:
parent
06f13d50ac
commit
5c7a36592e
11 changed files with 480 additions and 264 deletions
|
@ -33,7 +33,7 @@
|
|||
#define round(x) ((x) >= 0 ? (x)+0.5 : (x)-0.5)
|
||||
#endif
|
||||
#ifndef min
|
||||
#define min(x, y) ((x) > (y) ? (x) : (y))
|
||||
#define min(x, y) ((x) < (y) ? (x) : (y))
|
||||
#endif
|
||||
|
||||
#ifndef __inline
|
||||
|
@ -57,7 +57,7 @@ float UTKTable4[29];
|
|||
|
||||
int utk_read_header(utkheader_t * UTKHeader, const uint8_t * Buffer, size_t FileSize)
|
||||
{
|
||||
if(FileSize < 28) return 0;
|
||||
if(FileSize < 32) return 0;
|
||||
memcpy(&UTKHeader->sID, Buffer, 4);
|
||||
UTKHeader->dwOutSize = read_uint32(Buffer+4);
|
||||
UTKHeader->dwWfxSize = read_uint32(Buffer+8);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue