Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+
#ifdef WIN32
#define UINT8 WIN32API_UINT8
#define UINT16 WIN32API_UINT16
extern "C" {
#include "zlib.h"
#include "png.h"
- #include "jpeglib.h"
+ #ifdef WIN32
+ #define INT32 INT32_jpeg
+ #include "jpeglib.h"
+ #undef INT32
+ #else
+ #include "jpeglib.h"
+ #endif
}
static bool load_image(const char * fname, TGAImageRec & tex);
extern bool vblsync;
extern bool stillloading;
extern bool showpoints;
+extern bool showdamagebar;
extern bool alwaysblur;
extern bool immediate;
extern bool velocityblur;
#include "gamegl.h"
#include "MacCompatibility.h"
+
#ifdef WIN32
#include <shellapi.h>
#endif
randSeed = UpTime().lo;
osx = 0;
- ifstream ipstream(ConvertFileName("/Data/config.txt"), std::ios::in /*| std::ios::nocreate*/);
+ ifstream ipstream(ConvertFileName(":Data:config.txt"), std::ios::in /*| std::ios::nocreate*/);
detail=1;
ismotionblur=0;
usermousesensitivity=1;
texttoggle=1;
alwaysblur=0;
showpoints=0;
+ showdamagebar=0;
immediate=0;
velocityblur=0;
selectDetail(kContextWidth, kContextHeight, kBitsPerPixel, detail);
if(!ipstream) {
- ofstream opstream(ConvertFileName("/Data/config.txt", "w"));
+ ofstream opstream(ConvertFileName(":Data:config.txt", "w"));
opstream << "Screenwidth:\n";
opstream << kContextWidth;
opstream << "\nScreenheight:\n";
opstream << KeyToChar(game.attackkey);
opstream << "\nChat key:\n";
opstream << KeyToChar(game.chatkey);
+ opstream << "\nDamage bar:\n";
+ opstream << showdamagebar;
opstream.close();
}
if(ipstream){
ipstream.ignore(256,'\n');
ipstream >> string;
game.chatkey=CharToKey(string);
+ ipstream.ignore(256,'\n');
+ ipstream.ignore(256,'\n');
+ ipstream >> i;
+ showdamagebar = (i != 0);
ipstream.close();
if(detail>2)detail=2;
}
}
+
bool LoadImage(const char * fname, TGAImageRec & tex)
{
bool res = true;