notaz.gp2x.de
/
pcsx_rearmed.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
make: print what's going on
[pcsx_rearmed.git]
/
libpcsxcore
/
misc.c
diff --git
a/libpcsxcore/misc.c
b/libpcsxcore/misc.c
index
e3d227a
..
6853e30
100644
(file)
--- a/
libpcsxcore/misc.c
+++ b/
libpcsxcore/misc.c
@@
-28,6
+28,7
@@
#include "gpu.h"
#include "ppf.h"
#include "database.h"
#include "gpu.h"
#include "ppf.h"
#include "database.h"
+#include "lightrec/plugin.h"
#include <zlib.h>
char CdromId[10] = "";
#include <zlib.h>
char CdromId[10] = "";
@@
-55,10
+56,11
@@
struct iso_directory_record {
char name [1];
};
char name [1];
};
-void mmssdd( char *b, char *p )
+
static
void mmssdd( char *b, char *p )
{
int m, s, d;
{
int m, s, d;
- int block = SWAP32(*((uint32_t*) b));
+ unsigned char *ub = (void *)b;
+ int block = (ub[3] << 24) | (ub[2] << 16) | (ub[1] << 8) | ub[0];
block += 150;
m = block / 4500; // minutes
block += 150;
m = block / 4500; // minutes
@@
-89,7
+91,7
@@
void mmssdd( char *b, char *p )
time[0] = itob(time[0]); time[1] = itob(time[1]); time[2] = itob(time[2]);
#define READTRACK() \
time[0] = itob(time[0]); time[1] = itob(time[1]); time[2] = itob(time[2]);
#define READTRACK() \
- if (
CDR_readTrack(time) == -1
) return -1; \
+ if (
!CDR_readTrack(time)
) return -1; \
buf = (void *)CDR_getBuffer(); \
if (buf == NULL) return -1; \
else CheckPPFCache((u8 *)buf, time[0], time[1], time[2]);
buf = (void *)CDR_getBuffer(); \
if (buf == NULL) return -1; \
else CheckPPFCache((u8 *)buf, time[0], time[1], time[2]);
@@
-596,15
+598,6
@@
static const char PcsxHeader[32] = "STv4 PCSX v" PCSX_VERSION;
// If you make changes to the savestate version, please increment the value below.
static const u32 SaveVersion = 0x8b410006;
// If you make changes to the savestate version, please increment the value below.
static const u32 SaveVersion = 0x8b410006;
-static int drc_is_lightrec(void)
-{
-#if defined(LIGHTREC)
- return 1;
-#else
- return 0;
-#endif
-}
-
int SaveState(const char *file) {
void *f;
GPUFreeze_t *gpufP;
int SaveState(const char *file) {
void *f;
GPUFreeze_t *gpufP;