jtothebell / fake-08

A Pico-8 player/emulator for console homebrew
Other
577 stars 48 forks source link

Settings File, Cartdata, and bug fixes #61

Closed jtothebell closed 3 years ago

jtothebell commented 3 years ago

New Features: Add settings ini file to store preferred screen stretch. Read and write Cart Data to files (adds save data capability) *Add partial stat implementation

General Fixes add mapdraw alias to map function (fixes some old carts crashing) update z8lua split, pairs, ipairs, and tonum to handle args how pico 8 does (fixes several cart crashes) fix infinite loop when trying to draw an empty oval fix cursor location after calling print with a location use corretly mapped color in print calls fix handling of negative length passed to memset/memcpy/reload fix _update and _draw calls if they change at runtime leave general use ram alone after a reload call

Vita: *Improve perf by utilizing overclock

This also includes a refactor to share code between Switch, Vita, and SDL2 desktop. Not Wii U because it doesn't have sound, and I think I'll eventually move it away from SDL in favor of Wii U native rendering to solve the scaling issues.