mednafen-remove zlib dep (but keep using it in libmednahawk for PSF loading)
This commit is contained in:
parent
cb8578b488
commit
5ecc63f394
|
@ -85,7 +85,7 @@
|
|||
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<AdditionalDependencies>..\zlib123/zlib-vc8-Win32.lib;winmm.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
<AdditionalDependencies>..\zlib123\zlib-vc8-Win32.lib</AdditionalDependencies>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
<SubSystem>Console</SubSystem>
|
||||
<TargetMachine>MachineX86</TargetMachine>
|
||||
|
@ -112,7 +112,7 @@
|
|||
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<AdditionalDependencies>..\zlib123/zlib-vc8-Win32.lib;winmm.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
<AdditionalDependencies>..\zlib123\zlib-vc8-Win32.lib</AdditionalDependencies>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
<SubSystem>Console</SubSystem>
|
||||
<OptimizeReferences>true</OptimizeReferences>
|
||||
|
@ -140,7 +140,7 @@
|
|||
<FavorSizeOrSpeed>Speed</FavorSizeOrSpeed>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<AdditionalDependencies>..\zlib123/zlib-vc8-Win32.lib;winmm.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
<AdditionalDependencies>..\zlib123\zlib-vc8-Win32.lib</AdditionalDependencies>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
<SubSystem>Console</SubSystem>
|
||||
<OptimizeReferences>true</OptimizeReferences>
|
||||
|
|
|
@ -30,6 +30,7 @@
|
|||
#include <ctype.h>
|
||||
//#include <iconv.h>
|
||||
|
||||
#include <zlib.h>
|
||||
|
||||
PSFTags::PSFTags()
|
||||
{
|
||||
|
|
|
@ -723,6 +723,7 @@ static INLINE bool MDFN_DumpToFileReal(const char *filename, int compress, const
|
|||
if(MDFN_GetSettingB("filesys.disablesavegz"))
|
||||
compress = 0;
|
||||
|
||||
#ifdef WANT_DEARCHIVE
|
||||
if(compress)
|
||||
{
|
||||
char mode[64];
|
||||
|
@ -762,6 +763,7 @@ static INLINE bool MDFN_DumpToFileReal(const char *filename, int compress, const
|
|||
}
|
||||
}
|
||||
else
|
||||
#endif //WANT_DEARCHIVE
|
||||
{
|
||||
FILE *fp = fopen(filename, "wb");
|
||||
if(!fp)
|
||||
|
|
|
@ -29,6 +29,7 @@
|
|||
#include "string/escape.h"
|
||||
#include "FileStream.h"
|
||||
#include "MemoryStream.h"
|
||||
#include <zlib.h>
|
||||
|
||||
typedef struct
|
||||
{
|
||||
|
|
|
@ -32,6 +32,10 @@
|
|||
#include "video.h"
|
||||
#include "video/resize.h"
|
||||
|
||||
#ifndef HEADLESS
|
||||
#include <zlib.h>
|
||||
#endif
|
||||
|
||||
static int SaveStateStatus[10];
|
||||
|
||||
#define RLSB MDFNSTATE_RLSB //0x80000000
|
||||
|
@ -654,6 +658,7 @@ int MDFNSS_SaveSM(StateMem *st, int wantpreview_and_ts, int data_only, const MDF
|
|||
return(1);
|
||||
}
|
||||
|
||||
#ifndef HEADLESS
|
||||
int MDFNSS_Save(const char *fname, const char *suffix, const MDFN_Surface *surface, const MDFN_Rect *DisplayRect, const MDFN_Rect *LineWidths)
|
||||
{
|
||||
StateMem st;
|
||||
|
@ -724,7 +729,7 @@ int MDFNSS_SaveFP(gzFile fp, const MDFN_Surface *surface, const MDFN_Rect *Displ
|
|||
|
||||
return(1);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
int MDFNSS_LoadSM(StateMem *st, int haspreview, int data_only)
|
||||
{
|
||||
|
@ -765,6 +770,7 @@ int MDFNSS_LoadSM(StateMem *st, int haspreview, int data_only)
|
|||
return(MDFNGameInfo->StateAction(st, stateversion, data_only));
|
||||
}
|
||||
|
||||
#ifndef HEADLESS
|
||||
int MDFNSS_LoadFP(gzFile fp)
|
||||
{
|
||||
uint8 header[32];
|
||||
|
@ -845,6 +851,7 @@ int MDFNSS_Load(const char *fname, const char *suffix)
|
|||
return(0);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
//here we have a whole bunch of UI-related savestate functionality which isnt needed in headless
|
||||
#ifndef HEADLESS
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
#ifndef _STATE_H
|
||||
#define _STATE_H
|
||||
|
||||
#include <zlib.h>
|
||||
|
||||
#include "video.h"
|
||||
#include "state-common.h"
|
||||
|
@ -10,8 +9,12 @@ void MDFNSS_GetStateInfo(const char *filename, StateStatusStruct *status);
|
|||
|
||||
int MDFNSS_Save(const char *, const char *suffix, const MDFN_Surface *surface = (MDFN_Surface *)NULL, const MDFN_Rect *DisplayRect = (MDFN_Rect*)NULL, const MDFN_Rect *LineWidths = (MDFN_Rect *)NULL);
|
||||
int MDFNSS_Load(const char *, const char *suffix);
|
||||
|
||||
#ifdef WANT_MOVIE
|
||||
#include <zlib.h>
|
||||
int MDFNSS_SaveFP(gzFile fp, const MDFN_Surface *surface = (MDFN_Surface *)NULL, const MDFN_Rect *DisplayRect = (MDFN_Rect*)NULL, const MDFN_Rect *LineWidths = (MDFN_Rect *)NULL);
|
||||
int MDFNSS_LoadFP(gzFile fp);
|
||||
#endif
|
||||
|
||||
typedef struct
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue