Commit e7dc134e authored by Gerhard Stein's avatar Gerhard Stein

added SDL Mixer dll for windows

parent dcee1f36
......@@ -215,6 +215,7 @@ void CSaveGameController::convertAllOldFormats()
/**
* This function loads the savegame of the 5th version
*/
/*
bool CSaveGameController::loadSaveGameVersion5(const std::string &fname, OldSaveGameFormatV5& old)
{
FILE *fp;
......@@ -227,7 +228,7 @@ bool CSaveGameController::loadSaveGameVersion5(const std::string &fname, OldSave
readOldHeader(fp, &episode, &level, &lives, &numplayers);
gLogging.ftextOut("game_load: restoring structures...\n");
/*primaryplayer =*/ fgetc(fp); // primary player doesn't exist anymore! Jump that!
/ fgetc(fp); // primary player doesn't exist anymore! Jump that!
sgrle_compress(fp, (unsigned char *) &old.LevelControl, sizeof(old.LevelControl));
......@@ -257,7 +258,7 @@ bool CSaveGameController::loadSaveGameVersion5(const std::string &fname, OldSave
tempbuf = new unsigned char[22624];
/*highest_objslot = */fgetc(fp); fgetc(fp); // Not used anymore since objects are held in an vector.
fgetc(fp); fgetc(fp); // Not used anymore since objects are held in an vector.
if (sgrle_decompressV2(fp, (unsigned char *)tempbuf, 22624)) return false;
if (sgrle_decompressV2(fp, (unsigned char *)tempbuf, 9612)) return false;
......@@ -269,7 +270,8 @@ bool CSaveGameController::loadSaveGameVersion5(const std::string &fname, OldSave
return true;
}
*/
/*
bool CSaveGameController::loadSaveGameVersion4(const std::string &fname, OldSaveGameFormatV4& old)
{
FILE *fp;
......@@ -474,7 +476,7 @@ bool CSaveGameController::convertOldFormat(size_t slot)
return true;
}
*/
// this is seperated out of game_load for modularity because menumanager.c
// also uses it, in it's save-game "preview" menu on the load game screen
......
......@@ -93,8 +93,8 @@ public:
private:
bool loadSaveGameVersion5(const std::string &fname, OldSaveGameFormatV5& old);
bool loadSaveGameVersion4(const std::string &fname, OldSaveGameFormatV4& old);
// bool loadSaveGameVersion5(const std::string &fname, OldSaveGameFormatV5& old);
// bool loadSaveGameVersion4(const std::string &fname, OldSaveGameFormatV4& old);
bool IsOldSGVersion5(const std::string& fname);
bool IsOldSGVersion4(const std::string& fname);
......
......@@ -15,6 +15,7 @@
#define CPlayGameCoder_H_
#include <base/TypeDefinitions.h>
#include <cstring>
// This functions are used for enconding/decoding a variable to the game data format.
// It makes everything platform independent
......
......@@ -20,7 +20,7 @@
#include "engine/core/Playerdefines.h"
#include "engine/core/inventory.h"
/*
struct OldSaveGameFormatV5
{
struct stLevelControl
......@@ -367,5 +367,5 @@ struct OldSaveGameFormatV4
OldSaveGameFormatV4() { memset(this, 0, sizeof(OldSaveGameFormatV4)); }
};
*/
#endif /* OLDSAVEGAMESTRUCTS_H_ */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment