move peanutgb to repo

This commit is contained in:
2025-10-09 16:28:35 +02:00
parent ddf5a47c33
commit 49455d1b36
3 changed files with 4046 additions and 4 deletions

View File

@@ -17,7 +17,7 @@ idf_component_register(SRCS
src/buzzer.cpp
src/fs_helper.cpp
PRIV_REQUIRES spi_flash esp_driver_i2c driver sdk-esp esp_timer nvs_flash littlefs
INCLUDE_DIRS "include" "Peanut-GB"
INCLUDE_DIRS "include"
EMBED_FILES "roms/builtin_demo1.gb" "roms/builtin_demo2.gb")
littlefs_create_partition_image(littlefs ../flash_data FLASH_IN_PROJECT)

File diff suppressed because it is too large Load Diff

View File

@@ -1,5 +1,6 @@
#pragma GCC optimize("Ofast")
#include "apps/gameboy_app.hpp"
#include "apps/peanut_gb.h"
#include "app_framework.hpp"
#include "font16x8.hpp"
@@ -7,7 +8,6 @@
#include <disp_tools.hpp>
#include <fs_helper.hpp>
#include <peanut_gb.h>
#include "esp_timer.h"
@@ -1054,8 +1054,8 @@ private:
if (!statusMessage.empty()) {
const int statusWidth = font16x8::measureText(statusMessage, 1, 1);
const int statusX = std::max(12, (framebuffer.width() - statusWidth) / 2);
const int statusY = std::max(16, instructionY - font16x8::kGlyphHeight - 4);
const int statusX = std::max(12, (framebuffer.width() - statusWidth) - 12);
const int statusY = instructionY;
font16x8::drawText(framebuffer, statusX, statusY, statusMessage, 1, true, 1);
}
}