Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
4d24d1e
Launcher and pause menu on emu-ui, the screens shared with esp-box-emu
finger563 Nov 19, 2026
936961e
esp_timer stack 8 KB (as the box): the launcher's settings panel over…
finger563 Nov 19, 2026
ac521c1
emu-ui: the dpad moves the selection, the list follows at the edges
finger563 Nov 19, 2026
edb8019
emu-ui: the pause menu's FPS shows on the box, a long title scrolls
finger563 Nov 19, 2026
53edf44
The launcher shows each game's save count
finger563 Nov 19, 2026
b7b00ba
menu: the screenshot buffers only while the menu is open
finger563 Nov 19, 2026
e8691a3
Plain malloc goes to PSRAM first at any size (ALWAYSINTERNAL 256 -> 0)
finger563 Nov 19, 2026
57b3698
snes: free the screenshot buffer at deinit
finger563 Nov 19, 2026
8112002
emu-ui: fixed pattern tile table; nofrendo: input_register bounds
finger563 Nov 19, 2026
6c3af76
darkforces: allocator fallback in PSRAM; emulink: the game's fps in t…
finger563 Nov 19, 2026
cdb09ee
MSX: start is F1, Y opens fMSX's menu; real-speed frames; keyboard F-…
finger563 Nov 20, 2026
d3b1874
Move the soak-test fixes into their own PR
finger563 Nov 20, 2026
18faae2
snes: free the screenshot buffer at deinit
finger563 Nov 19, 2026
7ca9fe7
nofrendo: input_register bounds
finger563 Nov 20, 2026
2564a1e
darkforces: allocator fallback in PSRAM; emulink: the game's fps in t…
finger563 Nov 19, 2026
774ea50
MSX: start is F1, Y opens fMSX's menu; real-speed frames; keyboard F-…
finger563 Nov 20, 2026
926a96d
emulink: the USB link's service task at priority 5 on core 1
finger563 Nov 20, 2026
4ed9df5
emulink: status fps is the frames shown per second
finger563 Nov 20, 2026
91b1772
fmsx: the start + select chord across polls; screenshots of a whole f…
finger563 Nov 20, 2026
685d945
Merge main (#26 squash-merged) into fix/soak-fixes
finger563 Nov 20, 2026
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
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,10 @@ Cross / Circle / Square / Triangle, L1 / R1 on the shoulders, L2 / R2 on the
triggers for the item and weapon menus, so a pad with triggers (or the
keyboard's E / R) is needed for those.

MSX: A / B are the joystick's two fire buttons, start is the MSX's F1 key
(pause in Konami's games), select shows the on-screen keyboard and Y opens
fMSX's own menu.

New controllers: the console prints each device's decoded buttons on change
(debug level in `usb_hid.cpp`); a wrong mapping is a quirk-table entry in
espp's `hid-rp-report-map.hpp`.
Expand Down
2 changes: 1 addition & 1 deletion components/darkforces/TheForceEngine
2 changes: 1 addition & 1 deletion components/emulink
2 changes: 1 addition & 1 deletion components/msx/fmsx
Submodule fmsx updated 1 files
+80 −11 port/msx.cpp
2 changes: 1 addition & 1 deletion components/nes/nofrendo
9 changes: 7 additions & 2 deletions components/snes/src/snes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ constexpr int MAX_SKIP = 3;
// rendered vs skipped frames (the frame-time statistics blend both)
static uint64_t g_rendered_frames = 0, g_rendered_us = 0, g_skipped_frames = 0, g_skipped_us = 0;
static uint64_t g_next_due = 0; // cumulative frame deadline (esp_timer us)
// the last frame packed for a screenshot (the core's frames have a pitch)
std::vector<uint8_t> g_packed;
}

extern "C" uint32_t snes_host_read_joypad(int port) {
Expand Down Expand Up @@ -198,8 +200,10 @@ std::pair<size_t, size_t> get_snes_video_size() { return {static_cast<size_t>(g_

std::span<uint8_t> get_snes_video_buffer() {
if (!g_initialized || !g_last_frame) return {};
// the screenshot writer expects a packed frame; repack the pitch
static std::vector<uint8_t> packed;
// the screenshot writer expects a packed frame; repack the pitch (into a
// buffer deinit_snes() frees: a static one stayed in the middle of the
// PSRAM heap after the game, splitting its largest block)
auto &packed = g_packed;
packed.resize(static_cast<size_t>(g_last_w) * g_last_h * 2);
for (int y = 0; y < g_last_h; y++) {
memcpy(packed.data() + static_cast<size_t>(y) * g_last_w * 2, g_last_frame + static_cast<size_t>(y) * snes_glue_pitch(),
Expand All @@ -222,4 +226,5 @@ void deinit_snes() {
snes_glue_deinit();
BoxEmu::get().audio_sample_rate(48000);
g_last_frame = nullptr;
std::vector<uint8_t>().swap(g_packed); // the screenshot buffer goes back too
}
Loading