diff options
| author | SND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2009-11-26 06:41:17 +0000 |
|---|---|---|
| committer | SND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2009-11-26 06:41:17 +0000 |
| commit | acd164d56c60efd57a87c0cbe53fe6aee3be6696 (patch) | |
| tree | f9de10a5ff2039170952a910920496a77ac825da /plugins/dfcdrom/cdr-null.c | |
| parent | 9b9ad9958e1e373fa8804e5866e77d9f40b5d624 (diff) | |
| download | pcsxr-acd164d56c60efd57a87c0cbe53fe6aee3be6696.tar.gz | |
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@38248 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'plugins/dfcdrom/cdr-null.c')
| -rw-r--r-- | plugins/dfcdrom/cdr-null.c | 88 |
1 files changed, 88 insertions, 0 deletions
diff --git a/plugins/dfcdrom/cdr-null.c b/plugins/dfcdrom/cdr-null.c new file mode 100644 index 00000000..dac0d1df --- /dev/null +++ b/plugins/dfcdrom/cdr-null.c @@ -0,0 +1,88 @@ +/* + * Cdrom for Psemu Pro like Emulators + * + * By: linuzappz <linuzappz@hotmail.com> + * + */ + +#include "config.h" + +#include <stdio.h> +#include <stdlib.h> +#include <stdint.h> +#include <time.h> +#include <string.h> + +#ifdef ENABLE_NLS +#include <libintl.h> +#include <locale.h> +#define _(x) gettext(x) +#define N_(x) (x) +#else +#define _(x) (x) +#define N_(x) (x) +#endif + +char *LibName = N_("CDR NULL Plugin"); + +char *PSEgetLibName(void) { + return _(LibName); +} + +unsigned long PSEgetLibType(void) { + return PSE_LT_CDR; +} + +unsigned long PSEgetLibVersion(void) { + return 1 << 16; +} + +long CDRinit(void) { + return 0; +} + +long CDRshutdown(void) { + return 0; +} + +long CDRopen(void) { + return 0; +} + +long CDRclose(void) { + return 0; +} + +long CDRgetTN(unsigned char *buffer) { + buffer[0] = 1; + buffer[1] = 1; + return 0; +} + +long CDRgetTD(unsigned char track, unsigned char *buffer) { + memset(buffer + 1, 0, 3); + return 0; +} + +long CDRreadTrack(unsigned char *time) { + return -1; +} + +unsigned char *CDRgetBuffer(void) { + return NULL; +} + +long CDRplay(unsigned char *sector) { + return 0; +} + +long CDRstop(void) { + return 0; +} + +long CDRconfigure() { + return 0; +} + +void CDRabout() { +} |
