Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -148,3 +148,6 @@ tests/test_cibuildwheel/tmp_dockerfiles
*.cmake
Makefile
*.tmp

# Binary
gym-retro-integration
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,7 @@ add_core(gba mgba)
add_core(pce mednafen_pce_fast)
add_core(32x picodrive)
add_core(saturn mednafen_saturn)
add_core(ps1 pcsx_rearmed)

set(CLEAN_CORES)

Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ Currently added games on top of gym-retro:
* Virtua Fighter 2 - Genesis
* Virtua Fighter 2 - Saturn
* Mortal Kombat 1 - Sega CD
* Metal SlugX - Playstation 1

PvP games that support two models fighting each other:
* Samurai Showdown - Genesis
Expand Down Expand Up @@ -44,6 +45,8 @@ As well as additional states on already integrated games.
- 32x (via Picodrive)
- Saturn (via Beetle Saturn)
- Sega CD (via Genesis Plus GX)
- Sony
- Playstation 1 (via pcsx_rearmed)

**Experimental** (accessible in the fbneo branch)
- Arcade Machines:
Expand Down
15 changes: 15 additions & 0 deletions cores/ps1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"Ps1": {
"lib": "pcsx_rearmed",
"ext": ["bin"],
"keybinds": ["Z", "A", "TAB", "ENTER", "UP", "DOWN", "LEFT", "RIGHT", "X", "S", "Q", "W"],
"buttons": ["B", "Y", "SELECT", "START", "UP", "DOWN", "LEFT", "RIGHT", "A", "X", "L", "R"],
"types": ["|u1", "<u2", "<u4", "|i1", "<i2", "<i4", "|d1", "<d2", ">d4", "<d4", ">d6", ">d8", ">n4", ">n6", ">n8"],
"actions": [
[[], ["UP"], ["DOWN"]],
[[], ["LEFT"], ["RIGHT"]],
[[], ["A"], ["B"], ["X"], ["Y"], ["A", "B"], ["B", "Y"], ["Y", "X"], ["X", "A"], ["A", "B", "Y"], ["B", "Y", "X"], ["Y", "X", "A"], ["A", "B", "Y", "X"]],
[[], ["L"], ["R"], ["L", "R"]]
]
}
}
34 changes: 34 additions & 0 deletions cores/ps1/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
*.o
*.a
*.swp
*.so
*.d
tags
cscope.out
compile_commands.json
.gdb_history
pandora
pcsx.map
config.mak
config.log
cheatpops.db
/include/revision.h
/tools
obj/
.vscode/
.vscode/ipch/*

pcsx
pcsx_rearmed_libretro.dll
pcsxr_spu_area3.out
psx_gpu_offsets_update
/frontend/320240/pollux_set

/out/
/pcsx_bin/
/.pcsx/
/screenshots/
/skin
/bios/
/old/
/a/
255 changes: 255 additions & 0 deletions cores/ps1/.gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,255 @@
# DESCRIPTION: GitLab CI/CD for libRetro (NOT FOR GitLab-proper)

##############################################################################
################################# BOILERPLATE ################################
##############################################################################

# Core definitions
.core-defs:
variables:
JNI_PATH: .
MAKEFILE: Makefile.libretro
CORENAME: pcsx_rearmed

# Inclusion templates, required for the build to work
include:
################################## DESKTOPS ################################
# Windows 64-bit
- project: 'libretro-infrastructure/ci-templates'
file: '/windows-x64-mingw.yml'

# Windows 32-bit
- project: 'libretro-infrastructure/ci-templates'
file: '/windows-i686-mingw.yml'

# Linux 64-bit
- project: 'libretro-infrastructure/ci-templates'
file: '/linux-x64.yml'

# Linux 32-bit
- project: 'libretro-infrastructure/ci-templates'
file: '/linux-i686.yml'

# MacOS PowerPC 32-bit
# FIXME: libchdr vs Byte redefinition
#- project: 'libretro-infrastructure/ci-templates'
# file: '/osx-ppc.yml'

# MacOS 64-bit
- project: 'libretro-infrastructure/ci-templates'
file: '/osx-x64.yml'

# MacOS ARM 64-bit
- project: 'libretro-infrastructure/ci-templates'
file: '/osx-arm64.yml'

################################## CELLULAR ################################
# Android
- project: 'libretro-infrastructure/ci-templates'
file: '/android-jni.yml'

# iOS
- project: 'libretro-infrastructure/ci-templates'
file: '/ios-arm64.yml'

# iOS (armv7)
- project: 'libretro-infrastructure/ci-templates'
file: '/ios9.yml'

################################## CONSOLES ################################
# PlayStation3
- project: 'libretro-infrastructure/ci-templates'
file: '/psl1ght-static.yml'

# PlayStation Portable
- project: 'libretro-infrastructure/ci-templates'
file: '/psp-static.yml'

# PlayStation Vita
- project: 'libretro-infrastructure/ci-templates'
file: '/vita-static.yml'

# Nintendo 3DS
- project: 'libretro-infrastructure/ci-templates'
file: '/ctr-static.yml'

# Nintendo GameCube
- project: 'libretro-infrastructure/ci-templates'
file: '/ngc-static.yml'

# Nintendo Wii
- project: 'libretro-infrastructure/ci-templates'
file: '/wii-static.yml'

# Nintendo WiiU
- project: 'libretro-infrastructure/ci-templates'
file: '/wiiu-static.yml'

# Nintendo Switch
- project: 'libretro-infrastructure/ci-templates'
file: '/libnx-static.yml'

# tvOS (AppleTV)
- project: 'libretro-infrastructure/ci-templates'
file: '/tvos-arm64.yml'

# OpenDingux (ARM)
- project: 'libretro-infrastructure/ci-templates'
file: '/dingux-arm32.yml'

#################################### MISC ##################################
# Emscripten
- project: 'libretro-infrastructure/ci-templates'
file: '/emscripten-static.yml'

# Stages for building
stages:
- build-prepare
- build-shared
- build-static

##############################################################################
#################################### STAGES ##################################
##############################################################################
#
################################### DESKTOPS #################################
# Windows 64-bit
libretro-build-windows-x64:
extends:
- .libretro-windows-x64-mingw-make-default
- .core-defs

# Windows 32-bit
libretro-build-windows-i686:
extends:
- .libretro-windows-i686-mingw-make-default
- .core-defs

# Linux 64-bit
libretro-build-linux-x64:
extends:
- .libretro-linux-x64-make-default
- .core-defs

# Linux 32-bit
libretro-build-linux-i686:
extends:
- .libretro-linux-i686-make-default
- .core-defs

# MacOS 64-bit
libretro-build-osx-x64:
extends:
- .libretro-osx-x64-make-10-7
- .core-defs

# MacOS ARM 64-bit
libretro-build-osx-arm64:
extends:
- .libretro-osx-arm64-make-default
- .core-defs

# MacOS PowerPC 32-bit
#libretro-build-osx-ppc:
# extends:
# - .libretro-osx-ppc-make-default
# - .core-defs

################################### CELLULAR #################################
# Android ARMv7a
android-armeabi-v7a:
extends:
- .core-defs
- .libretro-android-jni-armeabi-v7a

# Android ARMv8a
android-arm64-v8a:
extends:
- .libretro-android-jni-arm64-v8a
- .core-defs

# Android 64-bit x86
android-x86_64:
extends:
- .libretro-android-jni-x86_64
- .core-defs

# Android 32-bit x86
android-x86:
extends:
- .libretro-android-jni-x86
- .core-defs

# iOS
libretro-build-ios-arm64:
extends:
- .libretro-ios-arm64-make-default
- .core-defs

# iOS (armv7) [iOS 9 and up]
libretro-build-ios9:
extends:
- .libretro-ios9-make-default
- .core-defs

# tvOS
libretro-build-tvos-arm64:
extends:
- .libretro-tvos-arm64-make-default
- .core-defs

################################### CONSOLES #################################
# PlayStation3
libretro-build-psl1ght:
extends:
- .libretro-psl1ght-static-retroarch-master
- .core-defs

# PlayStation Vita
libretro-build-vita:
extends:
- .libretro-vita-static-retroarch-master
- .core-defs

# Nintendo 3DS
libretro-build-ctr:
extends:
- .libretro-ctr-static-retroarch-master
- .core-defs

# Nintendo GameCube
libretro-build-ngc:
extends:
- .libretro-ngc-static-retroarch-master
- .core-defs

# Nintendo Wii
libretro-build-wii:
extends:
- .libretro-wii-static-retroarch-master
- .core-defs

# Nintendo WiiU
libretro-build-wiiu:
extends:
- .libretro-wiiu-static-retroarch-master
- .core-defs

# Nintendo Switch
libretro-build-libnx-aarch64:
extends:
- .libretro-libnx-static-retroarch-master
- .core-defs

# Miyoo
libretro-build-miyoo-arm32:
extends:
- .libretro-miyoo-arm32-make-default
- .core-defs

#################################### MISC ##################################
# Emscripten
libretro-build-emscripten:
extends:
- .libretro-emscripten-static-retroarch-master
- .core-defs
Loading
Loading