diff options
| author | Steven Fuller <relnev@icculus.org> | 2001-12-18 05:08:52 +0000 |
|---|---|---|
| committer | Patryk Obara <dreamer.tan@gmail.com> | 2019-08-20 02:22:37 +0200 |
| commit | 080430b3bda2bec05362119447d51b6c37f1cfc1 (patch) | |
| tree | a4d2354ed94acb903f7f79a83e198398cb6eb757 /src/stubs.c | |
| parent | 95b8b49b7602e4e2d3cd9e38273fa94451bec780 (diff) | |
Redid the most of the file loading/saving. Now uses $HOME/.avp/ and
$AVP_DIR to look for files.
Diffstat (limited to 'src/stubs.c')
| -rw-r--r-- | src/stubs.c | 54 |
1 files changed, 4 insertions, 50 deletions
diff --git a/src/stubs.c b/src/stubs.c index d6c1f6b..3515889 100644 --- a/src/stubs.c +++ b/src/stubs.c @@ -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; |
