/>\r
<Tool\r
Name="VCCLCompilerTool"\r
- AdditionalIncludeDirectories=""C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include";"..\jthread\jthread-1.2.1\src";"..\irrlicht\irrlicht-1.7.1\include""\r
- PreprocessorDefinitions="WIN32"\r
+ AdditionalIncludeDirectories=""C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include";"..\jthread\jthread-1.2.1\src";"..\irrlicht\irrlicht-1.7.1\include";"..\zlib\zlib-1.2.5""\r
+ PreprocessorDefinitions="WIN32;RUN_IN_PLACE"\r
BufferSecurityCheck="true"\r
EnableEnhancedInstructionSet="1"\r
FloatingPointModel="2"\r
/>\r
<Tool\r
Name="VCLinkerTool"\r
- AdditionalLibraryDirectories=""C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Lib";"..\jthread\jthread-1.2.1\Release";"..\irrlicht\irrlicht-1.7.1\lib\Win32-visualstudio""\r
+ AdditionalLibraryDirectories=""..\irrlicht\irrlicht-1.7.1\lib\Win32-visualstudio";..\zlib125dll\dll32"\r
IgnoreAllDefaultLibraries="false"\r
GenerateDebugInformation="true"\r
/>\r
/>\r
<Tool\r
Name="VCLinkerTool"\r
- AdditionalLibraryDirectories=""C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Lib";"..\irrlicht\irrlicht-1.7.1\lib\Win32-visualstudio";..\zlib125dll\dll32"\r
+ AdditionalLibraryDirectories=""..\irrlicht\irrlicht-1.7.1\lib\Win32-visualstudio";..\zlib125dll\dll32"\r
IgnoreDefaultLibraryNames="libcmtd.dll"\r
GenerateDebugInformation="false"\r
LinkTimeCodeGeneration="1"\r
#ifdef _WIN32
+#if CATCH_UNHANDLED_EXCEPTIONS == 1
void se_trans_func(unsigned int u, EXCEPTION_POINTERS* pExp)
{
dstream<<"In trans_func.\n";
}
}
#endif
+#endif
std::string path = porting::getDataPath(name.c_str());
dstream<<"getTextureDirect(): Loading path \""<<path
<<"\""<<std::endl;
+
+ // DEBUG
+ /*{
+ dstream<<"DEBUG CODE: Loading base image "
+ "directly to texture"<<std::endl;
+ t = driver->getTexture(path.c_str());
+ driver->renameTexture(t, texture_name.c_str());
+ return t;
+ }*/
+
video::IImage *image = driver->createImageFromFile(path.c_str());
if(image == NULL)
- See siggjen's emails.\r
- Is this the famous "windows 7 problem"?\r
- Apparently there might be other errors too\r
- - There is some problem with the menu system, something like the\r
- .Parent of guiPauseMenu to end up being 0xfeeefeee\r
\r
Networking and serialization:\r
-----------------------------\r
video::E_DRIVER_TYPE driverType;\r
\r
#ifdef _WIN32\r
- //driverType = video::EDT_DIRECT3D9;\r
- driverType = video::EDT_OPENGL;\r
+ driverType = video::EDT_DIRECT3D9;\r
+ //driverType = video::EDT_OPENGL;\r
#else\r
driverType = video::EDT_OPENGL;\r
//driverType = video::EDT_BURNINGSVIDEO; // Best software renderer\r
Address connect_address(0,0,0,0, port);\r
try{\r
if(address == "")\r
- connect_address.Resolve("localhost");\r
+ //connect_address.Resolve("localhost");\r
+ connect_address.setAddress(127,0,0,1);\r
else\r
connect_address.Resolve(address.c_str());\r
}\r
#include "utility.h"
// Debug printing options
+// Set to 1 for debug output
#define DP 0
+// This is prepended to everything printed here
#define DPS ""
bool g_sockets_initialized = false;
m_address = address;
}
+void Address::setAddress(unsigned int a, unsigned int b,
+ unsigned int c, unsigned int d)
+{
+ m_address = (a<<24) | (b<<16) | ( c<<8) | d;
+}
+
void Address::setPort(unsigned short port)
{
m_port = port;
unsigned int getAddress() const;
unsigned short getPort() const;
void setAddress(unsigned int address);
+ void setAddress(unsigned int a, unsigned int b,
+ unsigned int c, unsigned int d);
void setPort(unsigned short port);
void print(std::ostream *s) const;
void print() const;