summaryrefslogtreecommitdiffstats
path: root/loader
diff options
context:
space:
mode:
Diffstat (limited to 'loader')
-rw-r--r--loader/codecpath.c26
-rw-r--r--loader/codecpath.h12
-rw-r--r--loader/drv.c2
-rw-r--r--loader/elfdll.c2
-rw-r--r--loader/module.c2
-rw-r--r--loader/win32.c2
6 files changed, 4 insertions, 42 deletions
diff --git a/loader/codecpath.c b/loader/codecpath.c
deleted file mode 100644
index 0996f592f1..0000000000
--- a/loader/codecpath.c
+++ /dev/null
@@ -1,26 +0,0 @@
-/*
- * Modified for use with MPlayer, detailed changelog at
- * http://svn.mplayerhq.hu/mplayer/trunk/
- */
-
-#include <stdlib.h>
-#include <string.h>
-#include "config.h"
-#include "codecpath.h"
-
-char* def_path = BINARY_CODECS_PATH;
-
-static int needs_free=0;
-void SetCodecPath(const char* path)
-{
- if(needs_free)free(def_path);
- if(path==0)
- {
- def_path = BINARY_CODECS_PATH;
- needs_free=0;
- return;
- }
- def_path = malloc(strlen(path)+1);
- strcpy(def_path, path);
- needs_free=1;
-}
diff --git a/loader/codecpath.h b/loader/codecpath.h
deleted file mode 100644
index 0532e9a3a1..0000000000
--- a/loader/codecpath.h
+++ /dev/null
@@ -1,12 +0,0 @@
-/*
- * Modified for use with MPlayer, detailed changelog at
- * http://svn.mplayerhq.hu/mplayer/trunk/
- */
-
-#ifndef MPLAYER_CODECPATH_H
-#define MPLAYER_CODECPATH_H
-
-extern char *def_path;
-void SetCodecPath(const char* path);
-
-#endif /* MPLAYER_CODECPATH_H */
diff --git a/loader/drv.c b/loader/drv.c
index bfc57a4d1c..ece4aa3456 100644
--- a/loader/drv.c
+++ b/loader/drv.c
@@ -25,7 +25,7 @@
#ifndef __MINGW32__
#include "ext.h"
#endif
-#include "codecpath.h"
+#include "get_path.h"
#if 1
diff --git a/loader/elfdll.c b/loader/elfdll.c
index fe88227240..b0317bf91a 100644
--- a/loader/elfdll.c
+++ b/loader/elfdll.c
@@ -18,7 +18,7 @@
#include "wine/debugtools.h"
#include "wine/winerror.h"
#include "debug.h"
-#include "codecpath.h"
+#include "get_path.h"
//DEFAULT_DEBUG_CHANNEL(elfdll)
diff --git a/loader/module.c b/loader/module.c
index 98b31125af..0d4f8087ce 100644
--- a/loader/module.c
+++ b/loader/module.c
@@ -46,7 +46,7 @@
#endif
#include "win32.h"
#include "drv.h"
-#include "codecpath.h"
+#include "get_path.h"
#ifdef EMU_QTX_API
#include "wrapper.h"
diff --git a/loader/win32.c b/loader/win32.c
index 9ca0a4a3ab..52a7b2c6c5 100644
--- a/loader/win32.c
+++ b/loader/win32.c
@@ -49,7 +49,7 @@ for DLL to know too much about its environment.
#include "loader.h"
#include "com.h"
#include "ext.h"
-#include "codecpath.h"
+#include "get_path.h"
#include <stdlib.h>
#include <assert.h>