* applied patch by StefanV (from mailinglist) that fixes an error in config.py (broke compilation) and some string conversion warnings
* fixes some more string conversions warnings in bobtoolz * fixed unresolved symbols in bobtoolz and gtkgensurf (due to the above mentioned patch where the prototypes were not updated) git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/trunk@320 8a3a26a2-13c4-0310-b231-cf6edde360e5
This commit is contained in:
parent
cc4e44e31a
commit
204566e81e
|
|
@ -267,9 +267,9 @@ class Config:
|
||||||
self.CheckoutOrUpdate( svnurl, os.path.join( path, 'installs', pak ) )
|
self.CheckoutOrUpdate( svnurl, os.path.join( path, 'installs', pak ) )
|
||||||
|
|
||||||
def Setup( self ):
|
def Setup( self ):
|
||||||
if ( platform == 'local' ):
|
if ( platform == 'local' ):
|
||||||
# special case, fetch external paks under the local install directory
|
# special case, fetch external paks under the local install directory
|
||||||
self.FetchGamePaks( self.install_directory )
|
self.FetchGamePaks( self.install_directory )
|
||||||
# NOTE: unrelated to self.setup_platforms - grab support files and binaries and install them
|
# NOTE: unrelated to self.setup_platforms - grab support files and binaries and install them
|
||||||
if ( self.platform == 'Windows' ):
|
if ( self.platform == 'Windows' ):
|
||||||
depsfile = 'GtkR-deps-1.6-3.zip'
|
depsfile = 'GtkR-deps-1.6-3.zip'
|
||||||
|
|
|
||||||
|
|
@ -93,9 +93,9 @@ void DoBkgrndToggleYZ();
|
||||||
#define NUM_TOOLBAR_BUTTONS 4
|
#define NUM_TOOLBAR_BUTTONS 4
|
||||||
struct toolbar_button_info_s
|
struct toolbar_button_info_s
|
||||||
{
|
{
|
||||||
char *image;
|
const char *image;
|
||||||
char *text;
|
const char *text;
|
||||||
char *tip;
|
const char *tip;
|
||||||
void (*func)();
|
void (*func)();
|
||||||
IToolbarButton::EType type;
|
IToolbarButton::EType type;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -42,7 +42,7 @@ DEPair::~DEPair()
|
||||||
// Implementation
|
// Implementation
|
||||||
//////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
void DEPair::Build(char *pKey, char *pValue)
|
void DEPair::Build(const char *pKey, const char *pValue)
|
||||||
{
|
{
|
||||||
key = pKey;
|
key = pKey;
|
||||||
value = pValue;
|
value = pValue;
|
||||||
|
|
|
||||||
|
|
@ -34,7 +34,7 @@ public:
|
||||||
DEPair();
|
DEPair();
|
||||||
virtual ~DEPair();
|
virtual ~DEPair();
|
||||||
|
|
||||||
void Build(char* pKey, char* pValue);
|
void Build(const char* pKey, const char* pValue);
|
||||||
|
|
||||||
Str key;
|
Str key;
|
||||||
Str value;
|
Str value;
|
||||||
|
|
|
||||||
|
|
@ -520,7 +520,7 @@ void DEntity::ClearEPairs()
|
||||||
epairList.clear();
|
epairList.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
void DEntity::AddEPair(char *key, char *value) {
|
void DEntity::AddEPair(const char *key, const char *value) {
|
||||||
DEPair* newEPair;
|
DEPair* newEPair;
|
||||||
newEPair = FindEPairByKey( key );
|
newEPair = FindEPairByKey( key );
|
||||||
if(!newEPair) {
|
if(!newEPair) {
|
||||||
|
|
|
||||||
|
|
@ -47,7 +47,7 @@ public:
|
||||||
|
|
||||||
// epair functions........
|
// epair functions........
|
||||||
void LoadEPairList(epair_t* epl);
|
void LoadEPairList(epair_t* epl);
|
||||||
void AddEPair(char* key, char* value);
|
void AddEPair(const char* key, const char* value);
|
||||||
void ClearEPairs();
|
void ClearEPairs();
|
||||||
DEPair* FindEPairByKey(const char* keyname);
|
DEPair* FindEPairByKey(const char* keyname);
|
||||||
// ---------------------------------------------
|
// ---------------------------------------------
|
||||||
|
|
|
||||||
|
|
@ -40,7 +40,7 @@ DMap::~DMap()
|
||||||
ClearEntities();
|
ClearEntities();
|
||||||
}
|
}
|
||||||
|
|
||||||
DEntity* DMap::AddEntity(char *classname, int ID)
|
DEntity* DMap::AddEntity(const char *classname, int ID)
|
||||||
{
|
{
|
||||||
DEntity* newEntity;
|
DEntity* newEntity;
|
||||||
if(ID == -1)
|
if(ID == -1)
|
||||||
|
|
|
||||||
|
|
@ -43,7 +43,7 @@ public:
|
||||||
void ClearEntities();
|
void ClearEntities();
|
||||||
|
|
||||||
DEntity* DMap::GetEntityForID(int ID);
|
DEntity* DMap::GetEntityForID(int ID);
|
||||||
DEntity* AddEntity(char* classname = "worldspawn", int ID = -1);
|
DEntity* AddEntity(const char* classname = "worldspawn", int ID = -1);
|
||||||
|
|
||||||
list<DEntity*> entityList;
|
list<DEntity*> entityList;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -36,10 +36,10 @@ _QERUITable g_MessageTable; // for path plotting (listening for update)
|
||||||
_QEREntityTable g_EntityTable;
|
_QEREntityTable g_EntityTable;
|
||||||
|
|
||||||
// plugin name
|
// plugin name
|
||||||
char* PLUGIN_NAME = "bobToolz";
|
const char* PLUGIN_NAME = "bobToolz";
|
||||||
|
|
||||||
// commands in the menu
|
// commands in the menu
|
||||||
static char* PLUGIN_COMMANDS = "About...,-,Reset Textures...,PitOMatic,-,Vis Viewer,Brush Cleanup,Polygon Builder,Caulk Selection,-,Tree Planter,Drop Entity,Plot Splines,-,Merge Patches,Split patches,Turn edge";
|
static const char* PLUGIN_COMMANDS = "About...,-,Reset Textures...,PitOMatic,-,Vis Viewer,Brush Cleanup,Polygon Builder,Caulk Selection,-,Tree Planter,Drop Entity,Plot Splines,-,Merge Patches,Split patches,Turn edge";
|
||||||
|
|
||||||
// globals
|
// globals
|
||||||
GtkWidget *g_pRadiantWnd = NULL;
|
GtkWidget *g_pRadiantWnd = NULL;
|
||||||
|
|
|
||||||
|
|
@ -161,7 +161,7 @@ bool ValidateTextFloatRange(const char* pData, float min, float max, char* error
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool ValidateTextIntRange(const char* pData, int min, int max, char* error_title, int* value)
|
bool ValidateTextIntRange(const char* pData, int min, int max, const char* error_title, int* value)
|
||||||
{
|
{
|
||||||
char error_buffer[256];
|
char error_buffer[256];
|
||||||
sprintf(error_buffer, "Please Enter An Integer Between %i and %i", min, max);
|
sprintf(error_buffer, "Please Enter An Integer Between %i and %i", min, max);
|
||||||
|
|
|
||||||
|
|
@ -117,7 +117,7 @@ void SetInitialStairPos(int dir, vec3_t min, vec3_t max, float width)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
char* TranslateString (char *buf)
|
char* TranslateString (const char *buf)
|
||||||
{
|
{
|
||||||
static char buf2[32768];
|
static char buf2[32768];
|
||||||
int i, l;
|
int i, l;
|
||||||
|
|
@ -140,7 +140,7 @@ char* TranslateString (char *buf)
|
||||||
return buf2;
|
return buf2;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Sys_ERROR (char* text, ...)
|
void Sys_ERROR (const char* text, ...)
|
||||||
{
|
{
|
||||||
va_list argptr;
|
va_list argptr;
|
||||||
char buf[32768];
|
char buf[32768];
|
||||||
|
|
@ -191,7 +191,7 @@ const char* ExtractFilename(const char* path)
|
||||||
return ++p;
|
return ++p;
|
||||||
}
|
}
|
||||||
|
|
||||||
extern char* PLUGIN_NAME;
|
extern const char* PLUGIN_NAME;
|
||||||
/*char* GetGameFilename(char* buffer, const char* filename)
|
/*char* GetGameFilename(char* buffer, const char* filename)
|
||||||
{
|
{
|
||||||
strcpy(buffer, g_FuncTable.m_pfnGetGamePath());
|
strcpy(buffer, g_FuncTable.m_pfnGetGamePath());
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@ const char* GetCurrentTexture();
|
||||||
|
|
||||||
void FillDefaultTexture(_QERFaceData* faceData, vec3_t va, vec3_t vb, vec3_t vc, const char* texture);
|
void FillDefaultTexture(_QERFaceData* faceData, vec3_t va, vec3_t vb, vec3_t vc, const char* texture);
|
||||||
|
|
||||||
void Sys_ERROR (char* text, ...);
|
void Sys_ERROR (const char* text, ...);
|
||||||
|
|
||||||
void BuildMiniPrt(list<Str>* exclusionList);
|
void BuildMiniPrt(list<Str>* exclusionList);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -47,7 +47,7 @@ void MakeDecimatedMap(int *NumNodes, int *NumTris, NODE **pNode, TRI **pTri)
|
||||||
int Bisect(NODE *, int, int, int);
|
int Bisect(NODE *, int, int, int);
|
||||||
void CalcAngles(NODE *, int *, float *);
|
void CalcAngles(NODE *, int *, float *);
|
||||||
void EdgeOnSide(int *, int *, int *);
|
void EdgeOnSide(int *, int *, int *);
|
||||||
int tricall(int, NODE *, int *, TRI **, TRI **, char *);
|
int tricall(int, NODE *, int *, TRI **, TRI **, const char *);
|
||||||
int CheckBorders(int *,int,NODE *,int *,TRI **);
|
int CheckBorders(int *,int,NODE *,int *,TRI **);
|
||||||
|
|
||||||
float biggesterror;
|
float biggesterror;
|
||||||
|
|
@ -323,9 +323,8 @@ void MakeDecimatedMap(int *NumNodes, int *NumTris, NODE **pNode, TRI **pTri)
|
||||||
/* tricall Takes an array of nodes, spits out an array of triangles */
|
/* tricall Takes an array of nodes, spits out an array of triangles */
|
||||||
/* */
|
/* */
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
int tricall(int NumNodes, NODE *Node, int *NumTris, TRI **inTri, TRI **Tri, LPSTR Options)
|
int tricall(int NumNodes, NODE *Node, int *NumTris, TRI **inTri, TRI **Tri, const char *Options)
|
||||||
{
|
{
|
||||||
|
|
||||||
struct triangulateio in, out;
|
struct triangulateio in, out;
|
||||||
int i, N;
|
int i, N;
|
||||||
int NumUsedNodes;
|
int NumUsedNodes;
|
||||||
|
|
|
||||||
|
|
@ -176,7 +176,7 @@ void texfont_init ()
|
||||||
|
|
||||||
int i, j, x, y;
|
int i, j, x, y;
|
||||||
float inv = 1.0f/128;
|
float inv = 1.0f/128;
|
||||||
char *charlines[16] = {
|
const char *charlines[16] = {
|
||||||
"abcdefghijklmn", "opqrstuvwxyz0", "123456789ABC", "DEFGHIJKLMN",
|
"abcdefghijklmn", "opqrstuvwxyz0", "123456789ABC", "DEFGHIJKLMN",
|
||||||
"OPQRSTUVWX", "YZ,.!;:<>/?{}@$%", "&*()-+=_[] #" };
|
"OPQRSTUVWX", "YZ,.!;:<>/?{}@$%", "&*()-+=_[] #" };
|
||||||
unsigned char lefts[7][17] = {
|
unsigned char lefts[7][17] = {
|
||||||
|
|
|
||||||
|
|
@ -1393,10 +1393,10 @@ GtkWidget* create_main_dialog ()
|
||||||
GtkObject *adj;
|
GtkObject *adj;
|
||||||
GSList *group;
|
GSList *group;
|
||||||
int i;
|
int i;
|
||||||
char *games[] = { "Quake 2", "Half-Life", "SiN", "Heretic 2", "Kingpin", "Genesis3D", "Quake 3 Arena" };
|
const char *games[] = { "Quake 2", "Half-Life", "SiN", "Heretic 2", "Kingpin", "Genesis3D", "Quake 3 Arena" };
|
||||||
char *waveforms[] = { "Alternating hill/valley", "Cylindrical left-to-right", "Cylindrical top-to-bottom",
|
const char *waveforms[] = { "Alternating hill/valley", "Cylindrical left-to-right", "Cylindrical top-to-bottom",
|
||||||
"From bitmap", "Fractal" };
|
"From bitmap", "Fractal" };
|
||||||
char *orientations[] = { "Ground surface", "Ceiling", "Wall facing 0", "Wall facing 90",
|
const char *orientations[] = { "Ground surface", "Ceiling", "Wall facing 0", "Wall facing 90",
|
||||||
"Wall facing 180","Wall facing 270" };
|
"Wall facing 180","Wall facing 270" };
|
||||||
|
|
||||||
g_pWnd = dlg = gtk_window_new (GTK_WINDOW_TOPLEVEL);
|
g_pWnd = dlg = gtk_window_new (GTK_WINDOW_TOPLEVEL);
|
||||||
|
|
|
||||||
|
|
@ -321,7 +321,7 @@ varargs versions of all text functions.
|
||||||
FIXME: make this buffer size safe someday
|
FIXME: make this buffer size safe someday
|
||||||
============
|
============
|
||||||
*/
|
*/
|
||||||
char *va (char *format, ...)
|
char *va (const char *format, ...)
|
||||||
{
|
{
|
||||||
va_list argptr;
|
va_list argptr;
|
||||||
static char string[1024];
|
static char string[1024];
|
||||||
|
|
|
||||||
|
|
@ -1484,7 +1484,7 @@ void* WINAPI QERApp_GetEntityHandle(int nIndex)
|
||||||
return static_cast<void*>(pe);
|
return static_cast<void*>(pe);
|
||||||
}
|
}
|
||||||
|
|
||||||
epair_t* WINAPI QERApp_AllocateEpair( char *key, char *val )
|
epair_t* WINAPI QERApp_AllocateEpair( const char *key, const char *val )
|
||||||
{
|
{
|
||||||
epair_t *e = (epair_t*)qmalloc (sizeof(*e));
|
epair_t *e = (epair_t*)qmalloc (sizeof(*e));
|
||||||
e->key = (char*)qmalloc(strlen(key)+1);
|
e->key = (char*)qmalloc(strlen(key)+1);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user