Fix emulator build script, UI rendering, and clean up repo
This commit is contained in:
@@ -173,7 +173,7 @@ bool SerialUploader::complete_launch() {
|
||||
return launched;
|
||||
}
|
||||
|
||||
bool SerialUploader::process() {
|
||||
bool SerialUploader::process(bool spi_busy) {
|
||||
if (state == IDLE) {
|
||||
// Check for "UPLOAD" command
|
||||
int c = getchar_timeout_us(0);
|
||||
@@ -311,6 +311,9 @@ bool SerialUploader::process() {
|
||||
}
|
||||
|
||||
if (state == WRITING_FILE) {
|
||||
// Wait if SPI bus is busy (e.g. display refresh in progress on other core)
|
||||
if (spi_busy) return false;
|
||||
|
||||
if (write_file_to_sd()) {
|
||||
state = LAUNCHING_GAME;
|
||||
// Prepare for launch by scanning games, but don't actually launch yet
|
||||
|
||||
Reference in New Issue
Block a user