#include "Game.h"
#include "TGALoader.h"
-extern float texdetail;
-extern TGAImageRec texture;
-extern short vRefNum;
-extern long dirID;
-extern bool visibleloading;
-
-extern bool LoadImage(const char * fname, TGAImageRec & tex);
-/********************> LoadTGA() <*****/
-bool upload_image(const unsigned char* filePath, bool hasalpha)
-{
- if (visibleloading)
- Game::LoadingScreen();
+extern ImageRec texture;
+
+extern bool load_image(const char * fname, ImageRec & tex);
- // for Windows, just use TGA loader for now
- char fileName[256];
- CopyPascalStringToC( filePath, fileName);
- return (LoadImage(fileName, texture));
+bool upload_image(const char* fileName)
+{
+ return load_image(fileName, texture);
}