Redid the most of the file loading/saving. Now uses $HOME/.avp/ and

$AVP_DIR to look for files.
This commit is contained in:
Steven Fuller 2001-12-18 05:08:52 +00:00 committed by Patryk Obara
parent 95b8b49b76
commit 080430b3bd
40 changed files with 1400 additions and 1579 deletions

View file

@ -121,21 +121,6 @@ void ATRemoveTexture(void * pTexture)
}
/* avpreg.cpp */
char *AvpCDPath = 0;
void GetPathFromRegistry()
{
extern char * SecondTex_Directory;
extern char * SecondSoundDir;
fprintf(stderr, "GetPathFromRegistry()\n");
SecondTex_Directory = "./graphics";
SecondSoundDir = "./sounds";
}
/* d3_func.cpp */
int GetTextureHandle(IMAGEHEADER *imageHeaderPtr)
{
@ -191,32 +176,6 @@ void CheckWireFrameMode(int shouldBeOn)
fprintf(stderr, "CheckWireFrameMode(%d)\n", shouldBeOn);
}
void WriteEndCodeToExecuteBuffer()
{
fprintf(stderr, "WriteEndCodeToExecuteBuffer()\n");
}
BOOL UnlockExecuteBufferAndPrepareForUse()
{
fprintf(stderr, "UnlockExecuteBufferAndPrepareForUse()\n");
return FALSE;
}
BOOL ExecuteBuffer()
{
fprintf(stderr, "ExecuteBuffer()\n");
return FALSE;
}
BOOL EndD3DScene()
{
fprintf(stderr, "EndD3DScene()\n");
return FALSE;
}
/* ddplat.cpp */
void MinimizeAllDDGraphics()
@ -304,17 +263,12 @@ void GenerateDirectDrawSurface()
}
/* dx_proj.cpp */
int use_mmx_math = 0;
/* dxlog.c */
void dx_str_log(char const * str, int line, char const * file)
{
FILE *fp;
fp = fopen("dx_error.log", "a");
fp = OpenGameFile("dx_error.log", FILEMODE_APPEND, FILETYPE_CONFIG);
if (fp == NULL)
fp = stderr;
@ -328,7 +282,7 @@ void dx_strf_log(char const * fmt, ... )
va_list ap;
FILE *fp;
fp = fopen("dx_error.log", "a");
fp = OpenGameFile("dx_error.log", FILEMODE_APPEND, FILETYPE_CONFIG);
if (fp == NULL)
fp = stderr;
@ -345,7 +299,7 @@ void dx_line_log(int line, char const * file)
{
FILE *fp;
fp = fopen("dx_error.log", "a");
fp = OpenGameFile("dx_error.log", FILEMODE_APPEND, FILETYPE_CONFIG);
if (fp == NULL)
fp = stderr;