This commit is contained in:
GreYFoXGTi 2010-11-14 03:25:39 +02:00
commit d7aced0708
3 changed files with 12 additions and 8 deletions

View file

@ -706,7 +706,6 @@ bool CGraphics_OpenGL::Init()
}; };
m_InvalidTexture = LoadTextureRaw(4,4,CImageInfo::FORMAT_RGBA,aNullTextureData,CImageInfo::FORMAT_RGBA,TEXLOAD_NORESAMPLE); m_InvalidTexture = LoadTextureRaw(4,4,CImageInfo::FORMAT_RGBA,aNullTextureData,CImageInfo::FORMAT_RGBA,TEXLOAD_NORESAMPLE);
dbg_msg("", "invalid texture id: %d %d", m_InvalidTexture, m_aTextures[m_InvalidTexture].m_Tex);
return true; return true;
} }

View file

@ -1,5 +1,5 @@
#ifndef ENGINE_SHARED_DEMOREC_H #ifndef ENGINE_SHARED_DEMO_H
#define ENGINE_SHARED_DEMOREC_H #define ENGINE_SHARED_DEMO_H
#include <engine/demo.h> #include <engine/demo.h>
#include "snapshot.h" #include "snapshot.h"

View file

@ -124,30 +124,35 @@ public:
if(m_NumPaths >= MAX_PATHS || !pPath[0]) if(m_NumPaths >= MAX_PATHS || !pPath[0])
return; return;
int OldNum = m_NumPaths;
if(!str_comp(pPath, "$USERDIR")) if(!str_comp(pPath, "$USERDIR"))
{ {
if(m_aUserdir[0]) if(m_aUserdir[0])
{
str_copy(m_aaStoragePaths[m_NumPaths++], m_aUserdir, MAX_PATH_LENGTH); str_copy(m_aaStoragePaths[m_NumPaths++], m_aUserdir, MAX_PATH_LENGTH);
dbg_msg("storage", "added path '$USERDIR' ('%s')", m_aUserdir);
}
} }
else if(!str_comp(pPath, "$DATADIR")) else if(!str_comp(pPath, "$DATADIR"))
{ {
if(m_aDatadir[0]) if(m_aDatadir[0])
{
str_copy(m_aaStoragePaths[m_NumPaths++], m_aDatadir, MAX_PATH_LENGTH); str_copy(m_aaStoragePaths[m_NumPaths++], m_aDatadir, MAX_PATH_LENGTH);
dbg_msg("storage", "added path '$DATADIR' ('%s')", m_aDatadir);
}
} }
else if(!str_comp(pPath, "$CURRENTDIR")) else if(!str_comp(pPath, "$CURRENTDIR"))
{ {
m_aaStoragePaths[m_NumPaths++][0] = 0; m_aaStoragePaths[m_NumPaths++][0] = 0;
dbg_msg("storage", "added path '$CURRENTDIR'");
} }
else else
{ {
if(fs_is_dir(pPath)) if(fs_is_dir(pPath))
{
str_copy(m_aaStoragePaths[m_NumPaths++], pPath, MAX_PATH_LENGTH); str_copy(m_aaStoragePaths[m_NumPaths++], pPath, MAX_PATH_LENGTH);
dbg_msg("storage", "added path '%s'", pPath);
}
} }
if(OldNum != m_NumPaths)
dbg_msg("storage", "added path '%s'", pPath);
} }
void FindDatadir(const char *pArgv0) void FindDatadir(const char *pArgv0)