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);
#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;
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";
}
}
+
bool LoadImage(const char * fname, TGAImageRec & tex)
{
bool res = true;