mirror of
https://github.com/simtactics/niotso.git
synced 2025-07-03 21:32:12 -04:00
* Fixed MP3 playback with libmpg123
* Finally removed the dependency on libstdc++ with TDM GCC, reducing the size of the exe from 153kB to 87kB
This commit is contained in:
parent
f00c41f26c
commit
56f6487206
13 changed files with 63 additions and 53 deletions
|
@ -24,12 +24,12 @@
|
|||
#include <stddef.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <memory.h>
|
||||
#ifndef NOWINDOWS
|
||||
#include <windows.h>
|
||||
#endif
|
||||
|
||||
#define fhexport __declspec(dllexport)
|
||||
#ifdef WIN32
|
||||
#define fhexport __declspec(dllexport)
|
||||
#else
|
||||
#define fhexport __attribute__((visibility ("default")))
|
||||
#endif
|
||||
|
||||
struct Asset_t {
|
||||
uint32_t Group;
|
||||
|
@ -68,6 +68,13 @@ struct Sound_t {
|
|||
|
||||
namespace File {
|
||||
|
||||
inline unsigned GetFileSize(FILE * hFile){
|
||||
fseek(hFile, 0, SEEK_END);
|
||||
unsigned FileSize = ftell(hFile);
|
||||
fseek(hFile, 0, SEEK_SET);
|
||||
return FileSize;
|
||||
}
|
||||
|
||||
fhexport extern int Error;
|
||||
fhexport extern size_t FileSize;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue