summaryrefslogtreecommitdiff
path: root/libpcsxcore/plugins.c
diff options
context:
space:
mode:
Diffstat (limited to 'libpcsxcore/plugins.c')
-rwxr-xr-xlibpcsxcore/plugins.c26
1 files changed, 26 insertions, 0 deletions
diff --git a/libpcsxcore/plugins.c b/libpcsxcore/plugins.c
index c4fdae68..a1175e48 100755
--- a/libpcsxcore/plugins.c
+++ b/libpcsxcore/plugins.c
@@ -25,7 +25,9 @@
#include "cdriso.h"
static char IsoFile[MAXPATHLEN] = "";
+static char ExeFile[MAXPATHLEN] = "";
static char AppPath[MAXPATHLEN] = ""; //Application path(== pcsxr.exe directory)
+static char LdrFile[MAXPATHLEN] = ""; //bin-load file
static s64 cdOpenCaseTime = 0;
GPUupdateLace GPU_updateLace;
@@ -846,6 +848,14 @@ void SetIsoFile(const char *filename) {
strncpy(IsoFile, filename, MAXPATHLEN);
}
+void SetExeFile(const char *filename) {
+ if (filename == NULL) {
+ ExeFile[0] = '\0';
+ return;
+ }
+ strncpy(ExeFile, filename, MAXPATHLEN);
+}
+
// Set pcsxr.exe directory. This is not contain filename(and ext)).
void SetAppPath(const char *apppath ) {
if (apppath == NULL) {
@@ -855,14 +865,30 @@ void SetAppPath(const char *apppath ) {
strncpy(AppPath, apppath, MAXPATHLEN);
}
+void SetLdrFile(const char *ldrfile ) {
+ if (ldrfile == NULL) {
+ LdrFile[0] = '\0';
+ return;
+ }
+ strncpy(LdrFile, ldrfile, MAXPATHLEN);
+}
+
const char *GetIsoFile(void) {
return IsoFile;
}
+const char *GetExeFile(void) {
+ return ExeFile;
+}
+
const char *GetAppPath(void) {
return AppPath;
}
+const char *GetLdrFile(void) {
+ return LdrFile;
+}
+
boolean UsingIso(void) {
return (IsoFile[0] != '\0' || Config.Cdr[0] == '\0');
}