summaryrefslogtreecommitdiff
path: root/libpcsxcore/plugins.c
diff options
context:
space:
mode:
Diffstat (limited to 'libpcsxcore/plugins.c')
-rwxr-xr-xlibpcsxcore/plugins.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/libpcsxcore/plugins.c b/libpcsxcore/plugins.c
index 567630c8..c4fdae68 100755
--- a/libpcsxcore/plugins.c
+++ b/libpcsxcore/plugins.c
@@ -25,6 +25,7 @@
#include "cdriso.h"
static char IsoFile[MAXPATHLEN] = "";
+static char AppPath[MAXPATHLEN] = ""; //Application path(== pcsxr.exe directory)
static s64 cdOpenCaseTime = 0;
GPUupdateLace GPU_updateLace;
@@ -845,10 +846,23 @@ void SetIsoFile(const char *filename) {
strncpy(IsoFile, filename, MAXPATHLEN);
}
+// Set pcsxr.exe directory. This is not contain filename(and ext)).
+void SetAppPath(const char *apppath ) {
+ if (apppath == NULL) {
+ AppPath[0] = '\0';
+ return;
+ }
+ strncpy(AppPath, apppath, MAXPATHLEN);
+}
+
const char *GetIsoFile(void) {
return IsoFile;
}
+const char *GetAppPath(void) {
+ return AppPath;
+}
+
boolean UsingIso(void) {
return (IsoFile[0] != '\0' || Config.Cdr[0] == '\0');
}