linux stuff
This commit is contained in:
parent
f83fa2be8b
commit
95bc7fafac
@ -25,9 +25,11 @@ Use global variable Console like that:
|
||||
#include "boost/thread.hpp"
|
||||
#endif
|
||||
|
||||
#include "include/Utils/DataTypes/DataTypes.h"
|
||||
|
||||
#ifndef UTILS_ENGINE
|
||||
#include "include/Render/RenderMisc.h"
|
||||
|
||||
#endif
|
||||
|
||||
namespace SE
|
||||
{
|
||||
@ -43,8 +45,9 @@ protected:
|
||||
|
||||
std::string TextSavedInTriangleList;
|
||||
|
||||
#ifndef UTILS_ENGINE
|
||||
std::shared_ptr<TTriangleList> HistoryTriangeList;
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
public:
|
||||
|
@ -8,6 +8,7 @@ WINDOWS AND ANDROID
|
||||
*/
|
||||
|
||||
#include "include/Utils/DataTypes/DataTypes.h"
|
||||
#include "include/Utils/ErrorTypes/ErrorTypes.h"
|
||||
#include "include/Utils/Console/Console.h"
|
||||
#include "boost/shared_array.hpp"
|
||||
|
||||
@ -173,8 +174,9 @@ boost::shared_array<TYPENAME> CreateMemFromFile(const std::string& fileName, car
|
||||
|
||||
TYPENAME* fileData;
|
||||
|
||||
pFile = fopen(fileName.c_str(), "rb" );
|
||||
|
||||
if (fopen(&pFile, fileName.c_str(), "rb" ) != 0)
|
||||
if (!pFile)
|
||||
{
|
||||
throw ErrorToLog("File not loaded: " + fileName);
|
||||
}
|
||||
|
@ -9,6 +9,7 @@
|
||||
|
||||
#include "boost/foreach.hpp"
|
||||
#include <string>
|
||||
#include <map>
|
||||
|
||||
namespace SE
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user