Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CHD support #414

Open
wants to merge 72 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
72 commits
Select commit Hold shift + click to select a range
9ee86e6
(libretro) rebase port against latest yabause sources
barbudreadmon Aug 27, 2019
c36044a
(libretro) update jni
barbudreadmon Aug 27, 2019
d951f40
(libretro) trying to enable jit
barbudreadmon Aug 27, 2019
7156f5b
(libretro) remove stupid rule in gitignore
barbudreadmon Aug 27, 2019
fdce769
(libretro) some more fix/refactoring
barbudreadmon Aug 27, 2019
0d3e433
(libretro) some more fix/refactoring
barbudreadmon Aug 27, 2019
cb5fd9a
libretro/Makefile: add platform unix if platform armv
SupervisedThinking Aug 29, 2019
0281f9a
Turkish Language Option
fpscan Aug 30, 2019
ec6d444
Merge pull request #110 from fpscan/master
barbudreadmon Aug 30, 2019
f1ef68b
Merge pull request #107 from 5schatten/yabause_unix_armv_fix
barbudreadmon Sep 1, 2019
810e4fc
Add Classic consoles
evilwraith Sep 4, 2019
b743d3c
Merge pull request #118 from Classicmods/master
barbudreadmon Sep 5, 2019
c2acc01
(libretro) update cd-libretro.c
barbudreadmon Sep 11, 2019
61e52ad
(libretro) disable debug tools
barbudreadmon Sep 11, 2019
337ec85
(iOS/tvOS) support building
yoshisuga Sep 14, 2019
08d09cb
Merge pull request #121 from yoshisuga/ios_tvos_support
barbudreadmon Sep 14, 2019
e50fac0
Enable Haiku build
kwyxz Oct 24, 2019
4c71875
Merge pull request #127 from kwyxz/master
barbudreadmon Oct 24, 2019
3ded989
Update Makefile
inactive123 Dec 27, 2019
9a2f8f1
(MSVC 2017/Libretro) Buildfix
barbudreadmon Jan 7, 2020
9be109f
(libretro) Oops, fix a typo
barbudreadmon Feb 18, 2020
9f05806
enable Solaris build
kwyxz May 20, 2020
5fdcf25
Restore IllumOS build
kwyxz Jun 5, 2020
f515e5a
Merge pull request #218 from kwyxz/restore_illumos
inactive123 Jun 5, 2020
1e981f1
(libretro) add sega saturn wheel
barbudreadmon Dec 11, 2020
829595e
Create .gitlab-ci.yml
inactive123 Jan 21, 2021
d111821
Add support for macOS 11 and arm64
hosterholz Jan 22, 2021
fc32a90
Update .gitlab-ci.yml
inactive123 Jan 25, 2021
ea5b118
Update .gitlab-ci.yml
inactive123 Feb 4, 2021
f947b69
Add ios targets
inactive123 Mar 21, 2021
d43346d
Add missing tvos target
inactive123 Mar 21, 2021
d79d04c
Add osx-arm64 rules
inactive123 Mar 27, 2021
aa6b0d4
Fix detection
inactive123 Mar 27, 2021
6fed372
(ARM64 Mac) For cross-compilation - check if target has 'arm64' in th…
inactive123 Mar 27, 2021
ee65278
(libretro) cheevos support
barbudreadmon Apr 11, 2021
ba1dfaa
(libretro) disk control support
barbudreadmon Apr 11, 2021
a81c7f6
(libretro) disk control support (part 2)
barbudreadmon Apr 11, 2021
df54a29
(libretro) disk control support (part 3)
barbudreadmon Apr 11, 2021
4d85b6e
(libretro) disk control support (oops) + mouse support
barbudreadmon Apr 11, 2021
b028587
Adding Spanish translation to the core, unifying the "Restart Require…
IlDucci Jul 3, 2021
72ba152
tmpfile() can fail
barbudreadmon Jul 28, 2021
5c2038a
Merge pull request #259 from barbudreadmon/patch-12
barbudreadmon Jul 28, 2021
fcbb32d
AV system info - correct base_width/base_height
inactive123 Aug 15, 2021
d9ef00c
Update libretro.c
inactive123 Aug 16, 2021
739a846
fix https://github.com/libretro/yabause/issues/269
barbudreadmon Aug 21, 2021
64985d2
(libretro) retropad's L/R should be swapped
barbudreadmon Sep 3, 2021
1e33fca
Add riscv64 target
IEAST Sep 16, 2021
f35da4c
memory-based save states
Jamiras Sep 22, 2021
12c8691
(libretro) we don't need the OSD messages
barbudreadmon Sep 22, 2021
ce4d23f
Update issue templates
barbudreadmon Oct 31, 2021
811f9e8
(libretro) fix pixel format on android
barbudreadmon Nov 2, 2021
d3f5056
Add automatic Crowdin synchronization (#284)
DisasterMo Nov 27, 2021
c940fe6
Fetch translations & Recreate libretro_core_options_intl.h
invalid-email-address Dec 3, 2021
0f9381b
Fetch translations & Recreate libretro_core_options_intl.h
invalid-email-address Dec 10, 2021
f9eab18
Fetch translations & Recreate libretro_core_options_intl.h
invalid-email-address Dec 17, 2021
7cb5799
Fetch translations & Recreate libretro_core_options_intl.h
invalid-email-address Dec 24, 2021
5460283
(libretro) optional deps
barbudreadmon Dec 30, 2021
c44eb43
(libretro) remove this from static builds ?
barbudreadmon Dec 31, 2021
04e00bf
Revert "(libretro) remove this from static builds ?"
barbudreadmon Dec 31, 2021
3c4a3e0
(libretro) update deps
barbudreadmon Dec 31, 2021
dfd5844
Fetch translations & Recreate libretro_core_options_intl.h
invalid-email-address Jan 7, 2022
c627534
Fetch translations & Recreate libretro_core_options_intl.h
invalid-email-address Jan 14, 2022
f30153f
Enable Indonesian, Swedish and Ukrainian localisations
DisasterMo Jan 21, 2022
d50f64e
Fetch translations & Recreate libretro_core_options_intl.h
invalid-email-address Jan 28, 2022
3e71480
Fetch translations & Recreate libretro_core_options_intl.h
invalid-email-address Feb 4, 2022
f955577
Improve option descriptions
DisasterMo Feb 17, 2022
17dfcd8
Last-minute fix at Core Options
IlDucci Feb 18, 2022
c7e0272
Don't use fill_short_pathname_representation anymore - use its actual
LibretroAdmin Jul 12, 2022
6491b56
Fix Crowdin config & workflow
DisasterMo Jan 2, 2023
4c96b96
Merge pull request #298 from DisasterMo/crowdin-sync
LibretroAdmin Jan 3, 2023
89f3c3d
ios/tvos: properly set min supported version
warmenhoven Oct 21, 2024
c35712c
Merge pull request #309 from warmenhoven/warmenhoven/pr/old-ios-tvos
LibretroAdmin Oct 21, 2024
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
  •  
  •  
  •  
16 changes: 16 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: ''
assignees: ''

---

**Read first**
This repository is home to 3 libretro cores : yabause, Kronos, and yabasanshiro. Your issue will be closed if you don't mention the core you are using.

You should also consider this :
- the yabause project has been dead for years, so don't expect emulation improvements and other fixes of long-term upstream issues, but requests related to libretro-specific issues and features will be considered
- the Kronos libretro core is directly maintained upstream (https://github.com/FCare/Kronos), all issues should be reported there
- the yabasanshiro libretro core is unmaintained, full of bugs, and shouldn't be used, but contributors who are willing to change that status are welcome
33 changes: 33 additions & 0 deletions .github/workflows/crowdin_prep.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Prepare source texts & upload them to Crowdin

name: Crowdin Source Texts Upload

# on change to the English texts
on:
push:
branches:
- master
paths:
- 'yabause/src/libretro/libretro_core_options.h'

jobs:
upload_source_file:
runs-on: ubuntu-latest
steps:
- name: Setup Java JDK
uses: actions/setup-java@v1
with:
java-version: 1.8

- name: Setup Python
uses: actions/setup-python@v2

- name: Checkout
uses: actions/checkout@v2

- name: Upload Source
shell: bash
env:
CROWDIN_API_KEY: ${{ secrets.CROWDIN_API_KEY }}
run: |
python3 intl/upload_workflow.py $CROWDIN_API_KEY "yabause" "yabause/src/libretro/libretro_core_options.h"
46 changes: 46 additions & 0 deletions .github/workflows/crowdin_translate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# Download translations form Crowdin & Recreate libretro_core_options_intl.h

name: Crowdin Translation Integration

on:
schedule:
# please choose a random time & weekday to avoid all repos synching at the same time
- cron: '0 20 * * 5' # Fridays at 8:00 PM, UTC

jobs:
create_intl_file:
runs-on: ubuntu-latest
steps:
- name: Setup Java JDK
uses: actions/setup-java@v1
with:
java-version: 1.8

- name: Setup Python
uses: actions/setup-python@v2

- name: Checkout
uses: actions/checkout@v2
with:
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal access token.
fetch-depth: 0 # otherwise, there would be errors pushing refs to the destination repository.

- name: Create intl file
shell: bash
env:
CROWDIN_API_KEY: ${{ secrets.CROWDIN_API_KEY }}
run: |
python3 intl/download_workflow.py $CROWDIN_API_KEY "yabause" "yabause/src/libretro/libretro_core_options_intl.h"

- name: Commit files
run: |
git config --local user.email "[email protected]"
git config --local user.name "github-actions[bot]"
git add intl/*_workflow.py "yabause/src/libretro/libretro_core_options_intl.h"
git commit -m "Fetch translations & Recreate libretro_core_options_intl.h"

- name: GitHub Push
uses: ad-m/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}
12 changes: 12 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
*.o
*.so
*.dll
*.lib
*.pdb
*.exp
*.manifest
.cproject
.project
.settings/
**/*~
*.a
161 changes: 161 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,161 @@
# DESCRIPTION: GitLab CI/CD for libRetro (NOT FOR GitLab-proper)

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

# Core definitions
.core-defs:
variables:
JNI_PATH: yabause/src/libretro
MAKEFILE_PATH: yabause/src/libretro
CORENAME: yabause

# 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 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 ################################
# Nintendo Switch
- project: 'libretro-infrastructure/ci-templates'
file: '/libnx-static.yml'

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

#################################### MISC ##################################

# 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-default
- .core-defs

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

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

# 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 ################################

# Nintendo Switch
libretro-build-libnx-aarch64:
extends:
- .libretro-libnx-static-retroarch-master
- .core-defs
4 changes: 4 additions & 0 deletions intl/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
__pycache__
crowdin-cli.jar
*.h
*.json
70 changes: 70 additions & 0 deletions intl/activate.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
#!/usr/bin/env python3

import os
import glob
import random as r

# -------------------- MAIN -------------------- #

if __name__ == '__main__':
DIR_PATH = os.path.dirname(os.path.realpath(__file__))
if os.path.basename(DIR_PATH) != "intl":
raise RuntimeError("Script is not in intl folder!")

BASE_PATH = os.path.dirname(DIR_PATH)
WORKFLOW_PATH = os.path.join(BASE_PATH, ".github", "workflows")
PREP_WF = os.path.join(WORKFLOW_PATH, "crowdin_prep.yml")
TRANSLATE_WF = os.path.join(WORKFLOW_PATH, "crowdin_translate.yml")
CORE_NAME = os.path.basename(BASE_PATH)
CORE_OP_FILE = os.path.join(BASE_PATH, "**", "libretro_core_options.h")

core_options_hits = glob.glob(CORE_OP_FILE, recursive=True)

if len(core_options_hits) == 0:
raise RuntimeError("libretro_core_options.h not found!")
elif len(core_options_hits) > 1:
print("More than one libretro_core_options.h file found:\n\n")
for i, file in enumerate(core_options_hits):
print(f"{i} {file}\n")

while True:
user_choice = input("Please choose one ('q' will exit): ")
if user_choice == 'q':
exit(0)
elif user_choice.isdigit():
core_op_file = core_options_hits[int(user_choice)]
break
else:
print("Please make a valid choice!\n\n")
else:
core_op_file = core_options_hits[0]

core_intl_file = os.path.join(os.path.dirname(core_op_file.replace(BASE_PATH, ''))[1:],
'libretro_core_options_intl.h')
core_op_file = os.path.join(os.path.dirname(core_op_file.replace(BASE_PATH, ''))[1:],
'libretro_core_options.h')
minutes = r.randrange(0, 59, 5)
hour = r.randrange(0, 23)

with open(PREP_WF, 'r') as wf_file:
prep_txt = wf_file.read()

prep_txt = prep_txt.replace("<CORE_NAME>", CORE_NAME)
prep_txt = prep_txt.replace("<PATH/TO>/libretro_core_options.h",
core_op_file)
with open(PREP_WF, 'w') as wf_file:
wf_file.write(prep_txt)


with open(TRANSLATE_WF, 'r') as wf_file:
translate_txt = wf_file.read()

translate_txt = translate_txt.replace('<0-59>', f"{minutes}")
translate_txt = translate_txt.replace('<0-23>', f"{hour}")
translate_txt = translate_txt.replace('# Fridays at , UTC',
f"# Fridays at {hour%12}:{minutes if minutes > 9 else '0' + str(minutes)} {'AM' if hour < 12 else 'PM'}, UTC")
translate_txt = translate_txt.replace("<CORE_NAME>", CORE_NAME)
translate_txt = translate_txt.replace('<PATH/TO>/libretro_core_options_intl.h',
core_intl_file)
with open(TRANSLATE_WF, 'w') as wf_file:
wf_file.write(translate_txt)
Loading