mirror of
https://github.com/ReactionQuake3/reaction.git
synced 2025-02-18 18:11:22 +00:00
Model validation
This commit is contained in:
parent
835d69d44d
commit
9095d7b66d
4 changed files with 39 additions and 22 deletions
|
@ -6,7 +6,7 @@
|
|||
--------------------Configuration: ui - Win32 Release TA--------------------
|
||||
</h3>
|
||||
<h3>Command Lines</h3>
|
||||
Creating temporary file "D:\DOCUME~1\Andrei\LOCALS~1\Temp\RSP15F9.tmp" with contents
|
||||
Creating temporary file "D:\DOCUME~1\Andrei\LOCALS~1\Temp\RSP183E.tmp" with contents
|
||||
[
|
||||
/nologo /G6 /ML /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "UI_EXPORTS" /Fp"Release_TA/ta_ui.pch" /YX /Fo"Release_TA/" /Fd"Release_TA/" /FD /c
|
||||
"C:\Games\Quake3\rq3source\reaction\game\bg_misc.c"
|
||||
|
@ -20,8 +20,8 @@ Creating temporary file "D:\DOCUME~1\Andrei\LOCALS~1\Temp\RSP15F9.tmp" with cont
|
|||
"C:\Games\Quake3\rq3source\reaction\ta_ui\ui_syscalls.c"
|
||||
"C:\Games\Quake3\rq3source\reaction\ta_ui\ui_util.c"
|
||||
]
|
||||
Creating command line "cl.exe @D:\DOCUME~1\Andrei\LOCALS~1\Temp\RSP15F9.tmp"
|
||||
Creating temporary file "D:\DOCUME~1\Andrei\LOCALS~1\Temp\RSP15FA.tmp" with contents
|
||||
Creating command line "cl.exe @D:\DOCUME~1\Andrei\LOCALS~1\Temp\RSP183E.tmp"
|
||||
Creating temporary file "D:\DOCUME~1\Andrei\LOCALS~1\Temp\RSP183F.tmp" with contents
|
||||
[
|
||||
/nologo /base:"0x40000000" /dll /incremental:no /pdb:"Release_TA/uix86.pdb" /map:"Release_TA/uix86.map" /machine:I386 /def:".\ui.def" /out:"uix86.dll" /implib:"Release_TA/uix86.lib"
|
||||
.\Release_TA\bg_misc.obj
|
||||
|
@ -35,7 +35,7 @@ Creating temporary file "D:\DOCUME~1\Andrei\LOCALS~1\Temp\RSP15FA.tmp" with cont
|
|||
.\Release_TA\ui_syscalls.obj
|
||||
.\Release_TA\ui_util.obj
|
||||
]
|
||||
Creating command line "link.exe @D:\DOCUME~1\Andrei\LOCALS~1\Temp\RSP15FA.tmp"
|
||||
Creating command line "link.exe @D:\DOCUME~1\Andrei\LOCALS~1\Temp\RSP183F.tmp"
|
||||
<h3>Output Window</h3>
|
||||
Compiling...
|
||||
bg_misc.c
|
||||
|
|
|
@ -5,6 +5,9 @@
|
|||
//-----------------------------------------------------------------------------
|
||||
//
|
||||
// $Log$
|
||||
// Revision 1.9 2002/04/22 18:40:58 makro
|
||||
// Model validation
|
||||
//
|
||||
// Revision 1.8 2002/04/20 15:06:28 makro
|
||||
// Cool stuff :p
|
||||
//
|
||||
|
@ -508,6 +511,8 @@ extern void DriverInfo_Cache( void );
|
|||
//
|
||||
// ui_players.c
|
||||
//
|
||||
qboolean UI_FileExists(const char *filename);
|
||||
|
||||
|
||||
//FIXME ripped from cg_local.h
|
||||
typedef struct {
|
||||
|
|
|
@ -5,6 +5,9 @@
|
|||
//-----------------------------------------------------------------------------
|
||||
//
|
||||
// $Log$
|
||||
// Revision 1.18 2002/04/22 18:40:58 makro
|
||||
// Model validation
|
||||
//
|
||||
// Revision 1.17 2002/04/20 15:06:28 makro
|
||||
// Cool stuff :p
|
||||
//
|
||||
|
@ -256,6 +259,22 @@ int vmMain( int command, int arg0, int arg1, int arg2, int arg3, int arg4, int a
|
|||
return -1;
|
||||
}
|
||||
|
||||
/*
|
||||
==========================
|
||||
UI_FileExists
|
||||
|
||||
Makro - moved from ui_players.c
|
||||
==========================
|
||||
*/
|
||||
qboolean UI_FileExists(const char *filename) {
|
||||
int len;
|
||||
|
||||
len = trap_FS_FOpenFile( filename, 0, FS_READ );
|
||||
if (len>0) {
|
||||
return qtrue;
|
||||
}
|
||||
return qfalse;
|
||||
}
|
||||
|
||||
|
||||
void AssetCache() {
|
||||
|
@ -5338,9 +5357,13 @@ static void UI_BuildQ3Model_List( void )
|
|||
|
||||
// NiceAss:
|
||||
// Makro - added abbey
|
||||
if (strcmp(dirptr,"grunt") && strcmp(dirptr, "abbey"))
|
||||
//if (strcmp(dirptr,"grunt") && strcmp(dirptr, "abbey"))
|
||||
// continue;
|
||||
|
||||
// Makro - new code
|
||||
if (!UI_FileExists(va("models/players/%s/rq3model.cfg", dirptr)))
|
||||
continue;
|
||||
|
||||
|
||||
// iterate all skin files in directory
|
||||
numfiles = trap_FS_GetFileList( va("models/players/%s",dirptr), "tga", filelist, 2048 );
|
||||
fileptr = filelist;
|
||||
|
@ -5360,7 +5383,8 @@ static void UI_BuildQ3Model_List( void )
|
|||
}
|
||||
dirty = 0;
|
||||
for(k=0;k<uiInfo.q3HeadCount;k++) {
|
||||
if (!Q_stricmp(scratch, uiInfo.q3HeadNames[uiInfo.q3HeadCount])) {
|
||||
//Makro - changed from uiInfo.q3HeadNames[uiInfo.q3HeadCount] !
|
||||
if (!Q_stricmp(scratch, uiInfo.q3HeadNames[k])) {
|
||||
dirty = 1;
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -5,6 +5,9 @@
|
|||
//-----------------------------------------------------------------------------
|
||||
//
|
||||
// $Log$
|
||||
// Revision 1.4 2002/04/22 18:40:58 makro
|
||||
// Model validation
|
||||
//
|
||||
// Revision 1.3 2002/02/21 20:10:16 jbravo
|
||||
// Converted files back from M$ format and added cvs headers again.
|
||||
//
|
||||
|
@ -896,21 +899,6 @@ void UI_DrawPlayer( float x, float y, float w, float h, playerInfo_t *pi, int ti
|
|||
trap_R_RenderScene( &refdef );
|
||||
}
|
||||
|
||||
/*
|
||||
==========================
|
||||
UI_FileExists
|
||||
==========================
|
||||
*/
|
||||
static qboolean UI_FileExists(const char *filename) {
|
||||
int len;
|
||||
|
||||
len = trap_FS_FOpenFile( filename, 0, FS_READ );
|
||||
if (len>0) {
|
||||
return qtrue;
|
||||
}
|
||||
return qfalse;
|
||||
}
|
||||
|
||||
/*
|
||||
==========================
|
||||
UI_FindClientHeadFile
|
||||
|
|
Loading…
Reference in a new issue