You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+35-1Lines changed: 35 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -2211,7 +2211,7 @@ I will need to test on other platforms and with other controllers to figure out
2211
2211
We have all the required functionality for playing Game Boy games now but we aren't really a LibRetro frontend if we only support one core, so lets start implementing some setting that will enable more libRetro cores to run in our frontend.
2212
2212
2213
2213
2214
-
Fiest of all we need to refactor the core setup a little so we can get the requires FPS that the core want to run at, otherwise the core will either run too fast or too slow on our frontend. We can do this using the `av_info` object we got from the core earlier:
2214
+
First of all we need to refactor the core setup a little so we can get the requires FPS that the core want to run at, otherwise the core will either run too fast or too slow on our frontend. We can do this using the `av_info` object we got from the core earlier:
2215
2215
2216
2216
```rust
2217
2217
letmutav_info=SystemAvInfo {
@@ -2244,4 +2244,38 @@ let mut av_info = SystemAvInfo {
2244
2244
2245
2245
2246
2246
2247
+
We could try another emulator core but first lets try a standalong core, you can download the 2048 core from [LibRetro Nightly](https://buildbot.libretro.com/nightly/apple/osx/x86_64/latest/) and since we are going to be testing a bunch of different cores lets put them all in a ./cores directory.
Note that we still pass the GameBoy ROM in as our parameter parsing gives an error if it is not there.
2256
+
2257
+
When you run you will notice that something has gone horribly wrong:
2258
+
2259
+

2260
+
2261
+
This is caused by us presuming the Pixel Format is `RGB565` which it was in GamBatte, but the `2048` core uses `ARGB8888` which is the same as `minifb` uses so no conversion is nessecary, so lets stop auto converting the frame buffer to `RBG565` by modifying the code inside the `libretro_set_video_refresh_callback` function like so:
0 commit comments