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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .github/workflows/ci-all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@ jobs:
needs_chromedriver: false
needs_audio: true
extra_requirements: ''
- emulator: gb-cycle
needs_chromedriver: false
needs_audio: false
extra_requirements: ''
uses: ./.github/workflows/emulator-runner.yml
with:
emulator: ${{ matrix.emulator }}
Expand All @@ -90,4 +94,4 @@ jobs:
deploy-pages:
if: ${{ always() }}
needs: run-all
uses: ./.github/workflows/deploy-pages.yml
uses: ./.github/workflows/deploy-pages.yml
18 changes: 18 additions & 0 deletions .github/workflows/ci-gb-cycle.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: CI - gb-cycle

on:
workflow_dispatch:

permissions:
contents: write

jobs:
run:
uses: ./.github/workflows/emulator-runner.yml
with:
emulator: gb-cycle
needs_audio: false

deploy-pages:
needs: run
uses: ./.github/workflows/deploy-pages.yml
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ If you'd like to contribute to the project, please read [CONTRIBUTING.md](CONTRI
- [Emulicious](https://emulicious.net/)
- [Gambatte-Speedrun](https://github.com/pokemon-speedrunning/gambatte-speedrun)
- [GameRoy](https://github.com/Rodrigodd/gameroy)
- [gb-cycle](https://github.com/pakitovic/gb-cycle)
- [Goomba Color](https://www.dwedit.org/gba/goombacolor.php)
- [KiGB](http://kigb.emuunlim.com/)
- [mGBA](https://mgba.io/)
Expand Down
33 changes: 33 additions & 0 deletions emulators/gbcycle.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
from util import *
from emulator import Emulator
from test import *
import os


class GbCycle(Emulator):
def __init__(self):
super().__init__("gb-cycle", "https://github.com/pakitovic/gb-cycle", startup_time=10.0, features=(PCM,))
self.title_check = lambda title: title.startswith("gb-desktop |")

def setup(self):
downloadGithubRelease(
"pakitovic/gb-cycle",
"downloads/gb-cycle.zip",
filter=lambda name: name == "gb-cycle-windows-x86_64.zip",
require_asset=True,
)
extract("downloads/gb-cycle.zip", "emu/gb-cycle")
self.executable = os.path.abspath("emu/gb-cycle/gb-desktop.exe")
setDPIScaling(self.executable)

def startProcess(self, rom, *, model, required_features):
if model not in (DMG, CGB, SGB):
return None

return subprocess.Popen([
self.executable,
os.path.abspath(rom),
"--model", model,
"--startup", "skip-boot",
"--test-runner",
], cwd=os.path.dirname(self.executable))
6 changes: 6 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,12 @@ def _new_instance(module_name, class_name):
'name': "docboy",
'url': "https://github.com/Docheinstein/docboy",
},
{
'factory': lambda: _new_instance("emulators.gbcycle", "GbCycle"),
'keywords': ["gb-cycle", "gbcycle"],
'name': "gb-cycle",
'url': "https://github.com/pakitovic/gb-cycle",
},
]


Expand Down
Loading