summaryrefslogtreecommitdiff
path: root/libpcsxcore
diff options
context:
space:
mode:
authorSND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2010-05-23 07:26:10 +0000
committerSND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2010-05-23 07:26:10 +0000
commite594a282ee9f0ed44e31ee787a36900d39fe96be (patch)
tree0eb0bc9dd928a7484477e9e60c74ed03e8baa3aa /libpcsxcore
parent6078055e3e407033df88860f2ef5cf79abb934ab (diff)
downloadpcsxr-e594a282ee9f0ed44e31ee787a36900d39fe96be.tar.gz
trim the spaces. should be safe as the 2nd byte in shiftjis starts from 0x3f
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@48569 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'libpcsxcore')
-rw-r--r--libpcsxcore/psxmem.c2
-rw-r--r--libpcsxcore/sio.c7
2 files changed, 7 insertions, 2 deletions
diff --git a/libpcsxcore/psxmem.c b/libpcsxcore/psxmem.c
index 9d67c465..47c1ef12 100644
--- a/libpcsxcore/psxmem.c
+++ b/libpcsxcore/psxmem.c
@@ -21,6 +21,8 @@
* PSX memory functions.
*/
+// TODO: Implement caches & cycle penalty.
+
#include "psxmem.h"
#include "r3000a.h"
#include "psxhw.h"
diff --git a/libpcsxcore/sio.c b/libpcsxcore/sio.c
index f0655cd9..a31d6ee7 100644
--- a/libpcsxcore/sio.c
+++ b/libpcsxcore/sio.c
@@ -181,8 +181,8 @@ void sioWrite8(unsigned char value) {
{
char xor = 0;
int i;
- for (i=2;i<128+4;i++)
- xor^=buf[i];
+ for (i = 2; i < 128 + 4; i++)
+ xor ^= buf[i];
buf[132] = xor;
}
buf[133] = 0x47;
@@ -721,6 +721,9 @@ void GetMcdBlockInfo(int mcd, int block, McdBlock *Info) {
ptr += 2;
}
+ trim(str);
+ trim(sstr);
+
ptr = data + block * 8192 + 0x60; // icon palette data
for (i = 0; i < 16; i++) {