Unverified Commit f8ae1c05 authored by Libretro-Admin's avatar Libretro-Admin Committed by GitHub
Browse files

Merge pull request #53 from fjtrujy/ps2-support

Ps2 support
parents fa61739e 142c57fe
......@@ -31,6 +31,10 @@ include:
file: '/android-jni.yml'
################################## CONSOLES ################################
# PlayStation 2
- project: 'libretro-infrastructure/ci-templates'
file: '/ps2-static.yml'
# PlayStation Portable
- project: 'libretro-infrastructure/ci-templates'
file: '/psp-static.yml'
......@@ -98,6 +102,12 @@ android-x86:
- .core-defs
################################### CONSOLES #################################
# PlayStation 2
libretro-build-ps2:
extends:
- .libretro-ps2-static-retroarch-master
- .core-defs
# PlayStation Portable
libretro-build-psp:
extends:
......
......@@ -169,6 +169,16 @@ else ifeq ($(platform), classic_armv7_a7)
endif
#######################################
# PS2
else ifeq ($(platform), ps2)
TARGET := $(TARGET_NAME)_libretro_$(platform).a
CC = ee-gcc$(EXE_EXT)
CC_AS = ee-gcc$(EXE_EXT)
AR = ee-ar$(EXE_EXT)
PLATFORM_DEFINES := -DPS2
CFLAGS += -G0
STATIC_LINKING = 1
# PSP 1
else ifeq ($(platform), psp1)
TARGET := $(TARGET_NAME)_libretro_$(platform).a
......
......@@ -387,6 +387,8 @@ int StartMSX(int NewMode,int NewRAMPages,int NewVRAMPages)
{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }
};
char cwd[1024];
int *T,I,J,K;
byte *P;
word A;
......@@ -449,8 +451,8 @@ int StartMSX(int NewMode,int NewRAMPages,int NewVRAMPages)
/* Save current directory */
if(ProgDir)
if(WorkDir=getcwd(0,1024)) Chunks[NChunks++]=WorkDir;
if(WorkDir=getcwd(cwd, sizeof(cwd))) Chunks[NChunks++]=WorkDir;
/* Set invalid modes and RAM/VRAM sizes before calling ResetMSX() */
Mode = ~NewMode;
RAMPages = 0;
......
......@@ -28,6 +28,8 @@ extern int RAMPages ;
#define HEIGHT 228
#ifdef PSP
#define PIXEL(R,G,B) (pixel)(((31*(B)/255)<<11)|((63*(G)/255)<<5)|(31*(R)/255))
#elif defined(PS2)
#define PIXEL(R,G,B) (pixel)(((31*(B)/255)<<10)|((31*(G)/255)<<5)|(31*(R)/255))
#else
#define PIXEL(R,G,B) (pixel)(((31*(R)/255)<<11)|((63*(G)/255)<<5)|(31*(B)/255))
#endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment