diff options
| author | Stelios Tsampas <loathingkernel@gmail.com> | 2017-07-31 12:48:37 +0300 |
|---|---|---|
| committer | Stelios Tsampas <loathingkernel@gmail.com> | 2017-07-31 12:48:37 +0300 |
| commit | 01f49908879197b1715483321a9490dd71c8874b (patch) | |
| tree | 7ff0e4bd0188ffa59918d8ed1d7547c28b4d5d8e /libpcsxcore/plugins.c | |
| parent | dcf718bdd96c3bbe27e18200f6384cd43c95c111 (diff) | |
| download | pcsxr-01f49908879197b1715483321a9490dd71c8874b.tar.gz | |
* Sync with codeplex branch (libpcsxcore, linux gui)
This commit reflects mostly changes that happened in upstream since the last sync.
Commit messages in upstream are lacking information. Most important changes are
commented below, the rest of them are either formating or just trivial stuff.
Memory viewer, invalidate dynarec
gui/DebugMemory.c
libpcsxcore/cdrom.c
libpcsxcore/gpu.c
libpcsxcore/misc.c
libpcsxcore/psxdma.c
Load binary files and psx executables
libpcsxcore/misc.c
libpcsxcore/misc.h
libpcsxcore/plugin.c
libpcsxcore/plugin.h
Support for psxida
libpcsxcore/debug.c
libpcsxcore/r3000a.c
plugins/bladesio1/connection.c
disable loading save states with digits
gui/Plugin.c
Fix psxDIV in interpreter
libpcsxcore/psxinterpreter.c
Diffstat (limited to 'libpcsxcore/plugins.c')
| -rwxr-xr-x | libpcsxcore/plugins.c | 26 |
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'); } |
