mirror of https://github.com/PCSX2/pcsx2.git
Null Plugins: Now report an SVN revision as well as a version.
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@5306 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
parent
91ad246b46
commit
ff6b79085d
|
@ -16,8 +16,11 @@
|
|||
|
||||
#include <stdio.h>
|
||||
#include "CDVD.h"
|
||||
#ifdef _MSC_VER
|
||||
# include "svnrev.h"
|
||||
#endif
|
||||
|
||||
const char *LibName = "CDVDnull Driver";
|
||||
static char libraryName[256];
|
||||
|
||||
const unsigned char version = PS2E_CDVD_VERSION;
|
||||
const unsigned char revision = 0;
|
||||
|
@ -25,7 +28,12 @@ const unsigned char build = 6;
|
|||
|
||||
EXPORT_C_(char*) PS2EgetLibName()
|
||||
{
|
||||
return (char *)LibName;
|
||||
#ifdef _MSC_VER
|
||||
sprintf_s( libraryName, "CDVDnull Driver r%d%s",SVN_REV, SVN_MODS ? "m" : "");
|
||||
return libraryName;
|
||||
#elif
|
||||
return "CDVDnull Driver";
|
||||
#endif
|
||||
}
|
||||
|
||||
EXPORT_C_(u32) PS2EgetLibType()
|
||||
|
@ -114,7 +122,7 @@ EXPORT_C_(void) CDVDconfigure()
|
|||
|
||||
EXPORT_C_(void) CDVDabout()
|
||||
{
|
||||
SysMessage("%s %d.%d", LibName, revision, build);
|
||||
SysMessage("%s %d.%d", "CDVDnull Driver", revision, build);
|
||||
}
|
||||
|
||||
EXPORT_C_(s32) CDVDtest()
|
||||
|
|
|
@ -46,7 +46,6 @@ extern const unsigned char version;
|
|||
extern const unsigned char revision;
|
||||
extern const unsigned char build;
|
||||
extern const unsigned int minor;
|
||||
extern const char *LibName;
|
||||
|
||||
extern void SysMessage(const char *fmt, ...);
|
||||
#endif /* __CDVD_H__ */
|
||||
|
|
|
@ -21,12 +21,15 @@
|
|||
using namespace std;
|
||||
|
||||
#include "FW.h"
|
||||
#ifdef _MSC_VER
|
||||
# include "svnrev.h"
|
||||
#endif
|
||||
|
||||
const u8 version = PS2E_FW_VERSION;
|
||||
const u8 revision = 0;
|
||||
const u8 build = 7; // increase that with each version
|
||||
|
||||
static char *libraryName = "FWnull Driver";
|
||||
static char libraryName[256];
|
||||
|
||||
string s_strIniPath="inis";
|
||||
string s_strLogPath = "logs";
|
||||
|
@ -62,7 +65,12 @@ EXPORT_C_(u32) PS2EgetLibType()
|
|||
|
||||
EXPORT_C_(char*) PS2EgetLibName()
|
||||
{
|
||||
return libraryName;
|
||||
#ifdef _MSC_VER
|
||||
sprintf_s( libraryName, "FWnull Driver r%d%s",SVN_REV, SVN_MODS ? "m" : "");
|
||||
return libraryName;
|
||||
#elif
|
||||
return "FWnull Driver";
|
||||
#endif
|
||||
}
|
||||
|
||||
EXPORT_C_(u32) PS2EgetLibVersion2(u32 type)
|
||||
|
|
|
@ -27,12 +27,15 @@ using namespace std;
|
|||
#include "GS.h"
|
||||
#include "GifTransfer.h"
|
||||
#include "null/GSnull.h"
|
||||
#ifdef _MSC_VER
|
||||
# include "svnrev.h"
|
||||
#endif
|
||||
|
||||
const unsigned char version = PS2E_GS_VERSION;
|
||||
const unsigned char revision = 0;
|
||||
const unsigned char build = 1; // increase that with each version
|
||||
|
||||
static char *libraryName = "GSnull Driver";
|
||||
static char libraryName[256];
|
||||
Config conf;
|
||||
u32 GSKeyEvent = 0;
|
||||
bool GSShift = false, GSAlt = false;
|
||||
|
@ -60,7 +63,12 @@ EXPORT_C_(u32) PS2EgetLibType()
|
|||
|
||||
EXPORT_C_(char*) PS2EgetLibName()
|
||||
{
|
||||
return libraryName;
|
||||
#ifdef _MSC_VER
|
||||
sprintf_s( libraryName, "GSnull Driver r%d%s",SVN_REV, SVN_MODS ? "m" : "");
|
||||
return libraryName;
|
||||
#elif
|
||||
return "GSnull Driver";
|
||||
#endif
|
||||
}
|
||||
|
||||
EXPORT_C_(u32) PS2EgetLibVersion2(u32 type)
|
||||
|
|
|
@ -18,14 +18,16 @@
|
|||
#include <errno.h>
|
||||
#include <string>
|
||||
using namespace std;
|
||||
|
||||
#ifdef _MSC_VER
|
||||
# include "svnrev.h"
|
||||
#endif
|
||||
#include "Pad.h"
|
||||
|
||||
const u8 version = PS2E_PAD_VERSION;
|
||||
const u8 revision = 0;
|
||||
const u8 build = 1; // increase that with each version
|
||||
|
||||
static char *libraryName = "Padnull Driver";
|
||||
static char libraryName[256];
|
||||
string s_strIniPath="inis";
|
||||
string s_strLogPath="logs";
|
||||
|
||||
|
@ -41,7 +43,13 @@ EXPORT_C_(u32) PS2EgetLibType()
|
|||
|
||||
EXPORT_C_(char*) PS2EgetLibName()
|
||||
{
|
||||
return libraryName;
|
||||
#ifdef _MSC_VER
|
||||
sprintf_s( libraryName, "Padnull Driver r%d%s",SVN_REV, SVN_MODS ? "m" : "");
|
||||
return libraryName;
|
||||
#elif
|
||||
return "Padnull Driver";
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
EXPORT_C_(u32) PS2EgetLibVersion2(u32 type)
|
||||
|
|
|
@ -16,7 +16,9 @@
|
|||
#include <stdlib.h>
|
||||
#include <string>
|
||||
using namespace std;
|
||||
|
||||
#ifdef _MSC_VER
|
||||
# include "svnrev.h"
|
||||
#endif
|
||||
#include "USB.h"
|
||||
string s_strIniPath="inis";
|
||||
string s_strLogPath="logs";
|
||||
|
@ -25,7 +27,7 @@ const unsigned char version = PS2E_USB_VERSION;
|
|||
const unsigned char revision = 0;
|
||||
const unsigned char build = 7; // increase that with each version
|
||||
|
||||
static char *libraryName = "USBnull Driver";
|
||||
static char libraryName[256];
|
||||
|
||||
USBcallback USBirq;
|
||||
Config conf;
|
||||
|
@ -57,7 +59,12 @@ EXPORT_C_(u32) PS2EgetLibType()
|
|||
|
||||
EXPORT_C_(char*) PS2EgetLibName()
|
||||
{
|
||||
return libraryName;
|
||||
#ifdef _MSC_VER
|
||||
sprintf_s( libraryName, "USBnull Driver r%d%s",SVN_REV, SVN_MODS ? "m" : "");
|
||||
return libraryName;
|
||||
#elif
|
||||
return "USBnull Driver";
|
||||
#endif
|
||||
}
|
||||
|
||||
EXPORT_C_(u32) PS2EgetLibVersion2(u32 type)
|
||||
|
|
|
@ -31,12 +31,15 @@
|
|||
using namespace std;
|
||||
|
||||
#include "DEV9.h"
|
||||
#ifdef _MSC_VER
|
||||
# include "svnrev.h"
|
||||
#endif
|
||||
|
||||
const unsigned char version = PS2E_DEV9_VERSION;
|
||||
const unsigned char revision = 0;
|
||||
const unsigned char build = 5; // increase that with each version
|
||||
|
||||
const char *libraryName = "DEV9null Driver";
|
||||
static char libraryName[256];
|
||||
|
||||
// Our IRQ call.
|
||||
void (*DEV9irq)(int);
|
||||
|
@ -73,7 +76,12 @@ EXPORT_C_(u32) PS2EgetLibType()
|
|||
|
||||
EXPORT_C_(char*) PS2EgetLibName()
|
||||
{
|
||||
return (char *)libraryName;
|
||||
#ifdef _MSC_VER
|
||||
sprintf_s( libraryName, "DEV9null Driver r%d%s",SVN_REV, SVN_MODS ? "m" : "");
|
||||
return libraryName;
|
||||
#elif
|
||||
return "DEV9null Driver";
|
||||
#endif
|
||||
}
|
||||
|
||||
EXPORT_C_(u32) PS2EgetLibVersion2(u32 type)
|
||||
|
|
|
@ -35,7 +35,6 @@ extern const unsigned char version;
|
|||
extern const unsigned char revision;
|
||||
extern const unsigned char build;
|
||||
extern const unsigned int minor;
|
||||
extern const char *libraryName;
|
||||
|
||||
void SaveConfig();
|
||||
void LoadConfig();
|
||||
|
|
Loading…
Reference in New Issue