-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
677 changed files
with
93,033 additions
and
4,907 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Always use LF line endings for shaders | ||
*.fsh text eol=lf | ||
*.metal text eol=lf | ||
|
||
HexFiend/* linguist-vendored | ||
*.inc linguist-language=C | ||
Core/*.h linguist-language=C | ||
SDL/*.h linguist-language=C | ||
Windows/*.h linguist-language=C | ||
Cocoa/*.h linguist-language=Objective-C |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# These are supported funding model platforms | ||
|
||
github: LIJI32 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
Blargg's Test ROMs by Shay Green <[email protected]> | ||
|
||
Acid2 tests by Matt Currie under MIT: | ||
|
||
MIT License | ||
|
||
Copyright (c) 2020 Matt Currie | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
case `echo $1 | cut -d '-' -f 1` in | ||
ubuntu) | ||
sudo apt-get -qq update | ||
sudo apt-get install -yq bison libpng-dev pkg-config libsdl2-dev | ||
( | ||
cd `mktemp -d` | ||
curl -L https://github.com/rednex/rgbds/archive/v0.4.0.zip > rgbds.zip | ||
unzip rgbds.zip | ||
cd rgbds-* | ||
make -sj | ||
sudo make install | ||
cd .. | ||
rm -rf * | ||
) | ||
;; | ||
macos) | ||
brew install rgbds sdl2 | ||
;; | ||
*) | ||
echo "Unsupported OS" | ||
exit 1 | ||
;; | ||
esac |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
set -e | ||
|
||
./build/bin/tester/sameboy_tester --jobs 5 \ | ||
--length 45 .github/actions/cgb_sound.gb \ | ||
--length 10 .github/actions/cgb-acid2.gbc \ | ||
--length 10 .github/actions/dmg-acid2.gb \ | ||
--dmg --length 45 .github/actions/dmg_sound-2.gb \ | ||
--dmg --length 20 .github/actions/oam_bug-2.gb | ||
|
||
mv .github/actions/dmg{,-mode}-acid2.bmp | ||
|
||
./build/bin/tester/sameboy_tester \ | ||
--dmg --length 10 .github/actions/dmg-acid2.gb | ||
|
||
set +e | ||
|
||
FAILED_TESTS=` | ||
shasum .github/actions/*.bmp | grep -E -v \(\ | ||
64c3fd9a5fe9aee40fe15f3371029c0d2f20f5bc\ \ .github/actions/cgb-acid2.bmp\|\ | ||
dbcc438dcea13b5d1b80c5cd06bda2592cc5d9e0\ \ .github/actions/cgb_sound.bmp\|\ | ||
0caadf9634e40247ae9c15ff71992e8f77bbf89e\ \ .github/actions/dmg-acid2.bmp\|\ | ||
fbdb5e342bfdd2edda3ea5601d35d0ca60d18034\ \ .github/actions/dmg-mode-acid2.bmp\|\ | ||
c9e944b7e01078bdeba1819bc2fa9372b111f52d\ \ .github/actions/dmg_sound-2.bmp\|\ | ||
f0172cc91867d3343fbd113a2bb98100074be0de\ \ .github/actions/oam_bug-2.bmp\ | ||
\)` | ||
|
||
if [ -n "$FAILED_TESTS" ] ; then | ||
echo "Failed the following tests:" | ||
echo $FAILED_TESTS | tr " " "\n" | grep -o -E "[^/]+\.bmp" | sed s/.bmp// | sort | ||
exit 1 | ||
fi | ||
|
||
echo Passed all tests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: "Bulidability and Sanity" | ||
on: push | ||
|
||
jobs: | ||
sanity: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [macos-latest, ubuntu-latest, ubuntu-18.04] | ||
cc: [gcc, clang] | ||
include: | ||
- os: macos-latest | ||
cc: clang | ||
extra_target: cocoa | ||
exclude: | ||
- os: macos-latest | ||
cc: gcc | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Install deps | ||
shell: bash | ||
run: | | ||
./.github/actions/install_deps.sh ${{ matrix.os }} | ||
- name: Build | ||
run: | | ||
${{ matrix.cc }} -v; (make -j sdl tester libretro ${{ matrix.extra_target }} CONF=release CC=${{ matrix.cc }} || (echo "==== Build Failed ==="; make sdl tester libretro ${{ matrix.extra_target }} CONF=release CC=${{ matrix.cc }})) | ||
- name: Sanity tests | ||
shell: bash | ||
run: | | ||
./.github/actions/sanity_tests.sh | ||
- name: Upload binaries | ||
uses: actions/upload-artifact@v1 | ||
with: | ||
name: sameboy-canary-${{ matrix.os }}-${{ matrix.cc }} | ||
path: build/bin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
build |
Oops, something went wrong.