-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cult of GBA BIOS incompatibility warning
- Loading branch information
Showing
5 changed files
with
51 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/bash | ||
# Downloader for SkyEmu distribution of Cult of GBA BIOS | ||
# Copyright 2024 Damian Yerrick | ||
# SPDX-License-Identifier: FSFAP | ||
# | ||
# Script to download and produce the file gba_bios.bin based on | ||
# Cult of GBA BIOS <https://github.com/Cult-of-GBA/BIOS> | ||
# which is under Expat license | ||
set -e | ||
curl --remote-name --referer 'https://github.com/SourMesen/Mesen2/' 'https://raw.githubusercontent.com/skylersaleh/SkyEmu/555bd384f3346b7cd3103d74d5191c3b86312157/src/gba_bios.h' | ||
gcc -std=c11 -s -Os -o write_bios write_bios.c | ||
./write_bios |
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,12 @@ | ||
#include <stdio.h> | ||
#include <stdlib.h> | ||
#include <assert.h> | ||
#include "gba_bios.h" | ||
static_assert(sizeof(gba_bios_bin) == 16384); | ||
int main(void) { | ||
FILE *outfp = fopen("gba_bios.bin", "wb"); | ||
if (!outfp) return EXIT_FAILURE; | ||
size_t written = fwrite(gba_bios_bin, sizeof gba_bios_bin, 1, outfp); | ||
fclose(outfp); | ||
return !written; | ||
} |
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