diff options
Diffstat (limited to 'app-emulation/pcsx/files')
-rw-r--r-- | app-emulation/pcsx/files/digest-pcsx-1.2 | 1 | ||||
-rw-r--r-- | app-emulation/pcsx/files/ix86.h.diff | 27 | ||||
-rw-r--r-- | app-emulation/pcsx/files/pcsx | 53 |
3 files changed, 81 insertions, 0 deletions
diff --git a/app-emulation/pcsx/files/digest-pcsx-1.2 b/app-emulation/pcsx/files/digest-pcsx-1.2 new file mode 100644 index 000000000000..fbe0fec2ce0c --- /dev/null +++ b/app-emulation/pcsx/files/digest-pcsx-1.2 @@ -0,0 +1 @@ +MD5 f62a8ec57b4c744e134238b4850b0326 pcsxsrc1.2.zip 232084 diff --git a/app-emulation/pcsx/files/ix86.h.diff b/app-emulation/pcsx/files/ix86.h.diff new file mode 100644 index 000000000000..2f70ecf9fef4 --- /dev/null +++ b/app-emulation/pcsx/files/ix86.h.diff @@ -0,0 +1,27 @@ +--- PcsxSrc/Cpu/ix86/ix86.h.orig Wed Apr 17 15:05:26 2002 ++++ PcsxSrc/Cpu/ix86/ix86.h Mon May 27 01:16:45 2002 +@@ -6,6 +6,8 @@ + #ifndef __IX86_H__ + #define __IX86_H__ + ++#include "../Common.h" ++ + // Basic types + #if defined(__WIN32__) + +@@ -21,6 +23,7 @@ + + #elif defined(__LINUX__) + ++/* + typedef char s8; + typedef short s16; + typedef long s32; +@@ -30,6 +33,7 @@ + typedef unsigned short u16; + typedef unsigned long u32; + typedef unsigned long long u64; ++*/ + + #endif + diff --git a/app-emulation/pcsx/files/pcsx b/app-emulation/pcsx/files/pcsx new file mode 100644 index 000000000000..b90d0636c953 --- /dev/null +++ b/app-emulation/pcsx/files/pcsx @@ -0,0 +1,53 @@ +#!/bin/sh + +if [ ! -f ~/.pcsx/config ]; then + echo You are running PCSX for the first time. + echo Setting up your PCSX environment... Please wait... + + mkdir -p $HOME/.pcsx + cd $HOME/.pcsx + mkdir memcards bios cfg plugins + + ln -s /usr/bin/pcsx.bin pcsx + ln -s /usr/lib/psemu/plugins/* plugins/ + + cat >$HOME/.pcsx/config <<EOF +Bios = scph1001.bin +Gpu = $(basename $(echo plugins/libgpu* | cut -f1 -d\ ) ) +Spu = $(basename $(echo plugins/libspu* | cut -f1 -d\ ) ) +Cdr = $(basename $(echo plugins/libcdr* | cut -f1 -d\ ) ) +Pad1 = $(basename $(echo plugins/libpadXwin-* | cut -f1 -d\ ) ) +Pad2 = $(basename $(echo plugins/libpadXwin-* | cut -f1 -d\ ) ) +Mcd1 = $HOME/.pcsx/memcards/Mcd001.mcr +Mcd2 = $HOME/.pcsx/memcards/Mcd002.mcr +PluginsDir = $HOME/.pcsx/plugins/ +BiosDir = $HOME/.pcsx/bios/ +Xa = 0 +Sio = 0 +Mdec = 0 +PsxAuto = 1 +PsxType = 0 +Cdda = 0 +Cpu = 0 +PsxOut = 0 +SpuIrq = 0 +CdTiming = 0 +EOF + + cd bios + if [ -f /usr/lib/psemu/bios/scph1001.bin ]; then + ln -s /usr/lib/psemu/bios/scph1001.bin . + else + wget http://aral3uz.tripod.com/sc.zip + unzip -L sc.zip + rm -f sc.zip + fi +fi + +cd $HOME/.pcsx/ + +ln -s /usr/lib/psemu/cfg/* cfg/ &>/dev/null +ln -s /usr/lib/psemu/plugins/* plugins/ &>/dev/null + +./pcsx -cfg $HOME/.pcsx/config + |