1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123
|
/************************************************************************
Copyright mooby 2002
CDRMooby2 About.cpp
http://mooby.psxfanatics.com
This file is protected by the GNU GPL which should be included with
the source code distribution.
************************************************************************/
#include "defines.h"
#include "externs.h"
#include "Utils.hpp"
#include <FL/fl_ask.H>
#include <FL/Fl.H>
#include <string.h>
// About.cpp
// has the config, about, and test functions and related structs
// lots of this code was taken from PEOPS. THANK YOU!!!!
const unsigned char version = 1; // do not touch - library for PSEmu 1.x
#define REVISION 2
#define BUILD 8
#ifdef _DEBUG
#ifdef SUPER_DEBUG
static char *libraryName = "Mooby2 cd disk image super debug driver";
#else
static char *libraryName = "Mooby2 cd disk image debug driver";
#endif
#else
static char *libraryName = "Mooby2 cd disk image driver";
#endif
//static char *PluginAuthor = "Mooby";
static FPSEAbout aboutMooby = {FPSE_CDROM,
BUILD,
REVISION,
FPSE_OK,
"mooby",
#ifdef _DEBUG
#ifdef SUPER_DEBUG
"Mooby2 cd disk image super debug driver",
#else
"Mooby2 cd disk image debug driver",
#endif
#else
"Mooby2 cd disk image driver",
#endif
"moo"};
/** PSX emu interface **/
// lots of this code was swiped from PEOPS. thank you =)
char * CALLBACK PSEgetLibName(void)
{
return libraryName;
}
unsigned long CALLBACK PSEgetLibType(void)
{
return PSE_LT_CDR;
}
unsigned long CALLBACK PSEgetLibVersion(void)
{
return version<<16|REVISION<<8|BUILD;
}
void CALLBACK CDRabout(void)
{
std::ostringstream out;
out << libraryName;
moobyMessage(out.str());
}
long CALLBACK CDRtest(void)
{
moobyMessage("Of course it'll work.");
return 0;
}
/** FPSE interface **/
void CD_About(UINT32 *par)
{
memcpy(par, &aboutMooby, sizeof(FPSEAbout));
}
/** PCSX2 interface **/
void CALLBACK CDVDabout()
{
CDRabout();
}
s32 CALLBACK CDVDtest()
{
return CDRtest();
}
u32 CALLBACK PS2EgetLibType(void)
{
return PS2E_LT_CDVD;
}
u32 CALLBACK PS2EgetLibVersion(void)
{
return PSEgetLibVersion();
}
char* CALLBACK PS2EgetLibName(void)
{
return PSEgetLibName();
}
|