Skip to content

Instantly share code, notes, and snippets.

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define caesar(x) rot(13, x)
#define decaesar(x) rot(13, x)
#define decrypt_rot(x, y) rot((26-x), y)
void rot(int c, char *str)
{
#include <stdio.h>
#include <stdint.h>
#include <string.h>
//addditive cipher
#define SHIFT 10
#define ALPHABET_COUNT 27
#define DECRYPT_STRING "BYLOBD"
#define ENCRYPT_STRING "ROBERT"
@inactive123
inactive123 / gist:1275600
Created October 10, 2011 15:25
blit.diff
diff --git a/src/burner/PS3/main.cpp b/src/burner/PS3/main.cpp
index 12753bb..21f3482 100644
--- a/src/burner/PS3/main.cpp
+++ b/src/burner/PS3/main.cpp
@@ -221,8 +221,6 @@ int main(int argc, char **argv)
{
if(bVidRecalcPalette)
{
- audio_check();
- nCurrentFrame++;
@inactive123
inactive123 / gist:1276311
Created October 10, 2011 19:38
GPU binding FBA
diff --git a/src/interface/PS3/vid_interface_ps3.cpp b/src/interface/PS3/vid_interface_ps3.cpp
index 3eda11f..4a7667e 100644
--- a/src/interface/PS3/vid_interface_ps3.cpp
+++ b/src/interface/PS3/vid_interface_ps3.cpp
@@ -18,7 +18,6 @@ float vidScrnAspect = ASPECT_RATIO_4_3; // Aspect ratio
unsigned char* pVidImage = NULL; // Memory buffer
int nVidImageWidth = DEFAULT_IMAGE_WIDTH; // Memory buffer size
int nVidImageHeight = DEFAULT_IMAGE_HEIGHT;
-int nVidImageLeft = 0, nVidImageTop = 0; // Memory buffer visible area offsets
int nVidImagePitch = 0; // Memory buffer pitch
@inactive123
inactive123 / gist:1276312
Created October 10, 2011 19:38
GPU binding FBA
diff --git a/src/interface/PS3/vid_interface_ps3.cpp b/src/interface/PS3/vid_interface_ps3.cpp
index 3eda11f..4a7667e 100644
--- a/src/interface/PS3/vid_interface_ps3.cpp
+++ b/src/interface/PS3/vid_interface_ps3.cpp
@@ -18,7 +18,6 @@ float vidScrnAspect = ASPECT_RATIO_4_3; // Aspect ratio
unsigned char* pVidImage = NULL; // Memory buffer
int nVidImageWidth = DEFAULT_IMAGE_WIDTH; // Memory buffer size
int nVidImageHeight = DEFAULT_IMAGE_HEIGHT;
-int nVidImageLeft = 0, nVidImageTop = 0; // Memory buffer visible area offsets
int nVidImagePitch = 0; // Memory buffer pitch
@inactive123
inactive123 / gist:1279836
Created October 12, 2011 00:01
Vendetta fix - FBA PS3
diff --git a/Makefile b/Makefile
index b9f7e0f..8e876df 100644
--- a/Makefile
+++ b/Makefile
@@ -1,3 +1,9 @@
+CELL_DEBUG_CONSOLE = 0
+CELL_DEBUG_FPS = 0
+CELL_DEBUG_LOGGER = 0
+CELL_DEBUG_MEMORY = 0
+MULTIMAN_SUPPORT = 0
static void SetViewport(int x, int y, int w, int h, int outwidth, int outheight)
{
float device_aspect = psglGetDeviceAspectRatio(psgl_device);
glMatrixMode(GL_PROJECTION);
glLoadIdentity();
GLfloat left = 0;
GLfloat right = outwidth;
GLfloat bottom = 0;
GLfloat top = outheight;
GLfloat zNear = -1.0;
static void SetViewport(int x, int y, int w, int h, int outwidth, int outheight)
{
float device_aspect = psglGetDeviceAspectRatio(psgl_device);
glMatrixMode(GL_PROJECTION);
glLoadIdentity();
GLfloat left = 0;
GLfloat right = outwidth;
GLfloat bottom = 0;
GLfloat top = outheight;
GLfloat zNear = -1.0;
@inactive123
inactive123 / gist:1290374
Created October 16, 2011 00:51
diff patch libsnes gba
diff --git a/trunk/platform/libgba/Makefile b/trunk/platform/libgba/Makefile
index 15bb917..28c4387 100644
--- a/trunk/platform/libgba/Makefile
+++ b/trunk/platform/libgba/Makefile
@@ -13,8 +13,8 @@ OBJS := $(VBA_COBJ) $(VBA_CXXOBJ) libsnes.o
VBA_DEFINES := -D__LIBGBA__
-CFLAGS += -O3 -g -std=gnu99 -fPIC $(VBA_DEFINES)
-CXXFLAGS += -O3 -g -fPIC $(VBA_DEFINES)
@inactive123
inactive123 / gist:1300140
Created October 20, 2011 01:02
Libnes fixed - PS3 build same speed
diff --git a/trunk/platform/libgba/libsnes.cpp b/trunk/platform/libgba/libsnes.cpp
index 69ce3f1..f6f7838 100644
--- a/trunk/platform/libgba/libsnes.cpp
+++ b/trunk/platform/libgba/libsnes.cpp
@@ -15,6 +15,7 @@ static snes_video_refresh_t video_cb = NULL;
static snes_audio_sample_t audio_cb = NULL;
static snes_input_poll_t poll_cb = NULL;
static snes_input_state_t input_cb = NULL;
+extern uint64_t joy;