From 3b62ce875bc3081e02adbd85e7eccef034b5e101 Mon Sep 17 00:00:00 2001 From: Sam Fredrickson Date: Wed, 25 Mar 2009 08:12:24 -0700 Subject: [PATCH] Fixed the PSP port so that it compiles. I'm assuming that it will also work, but it may not. --- Makefile.psp | 3 ++- src/psp/port.cpp | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile.psp b/Makefile.psp index cbfdcdb..3bca48f 100644 --- a/Makefile.psp +++ b/Makefile.psp @@ -4,6 +4,7 @@ CP = cp VERSION = $(shell cat VERSION) +GIT_BUILD = $(shell git describe) TARGET = bin/psp/psprpn PSP_EBOOT = bin/psp/EBOOT.PBP PSP_EBOOT_SFO = bin/psp/PARAM.SFO @@ -23,7 +24,7 @@ $(OBJDIR)%.o: $(SRCDIR)%.cpp @$(CC) $(CFLAGS) $(LFLAGS) -c $< -o $@ # The -G0 flag fixes some oddity in the MIPS architecture. -CFLAGS = -O2 -G0 -Wall -DRPN_PSP -DRPN_DOUBLE +CFLAGS = -O2 -G0 -Wall -DRPN_PSP -DRPN_DOUBLE -DGIT_BUILD="\"$(GIT_BUILD)\"" CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti ASFLAGS = $(CFLAGS) diff --git a/src/psp/port.cpp b/src/psp/port.cpp index 8d5d3e3..f7d874b 100644 --- a/src/psp/port.cpp +++ b/src/psp/port.cpp @@ -35,6 +35,8 @@ using namespace std; #define kprintf pspDebugScreenPrintf +char Port::output_buffer[1024]; + map Port::keyMap; int Port::enter = PSP_CTRL_LTRIGGER | PSP_CTRL_RTRIGGER; int Port::cancel = PSP_CTRL_LTRIGGER; -- 2.11.4.GIT