Path fixes for simulator (#357)

This commit is contained in:
Ken Van Hoeylandt
2025-10-03 22:12:55 +02:00
committed by GitHub
parent efd9662cfc
commit a05a6afaaf
11 changed files with 38 additions and 12 deletions
+5
View File
@@ -1,6 +1,11 @@
#pragma once
/**
* Deprecated list of LVGL asset folder paths>
*/
#define TT_ASSET_FOLDER "A:/system/"
#define TT_ASSET(file) TT_ASSET_FOLDER file
// UI
+8
View File
@@ -2,6 +2,14 @@
namespace tt::lvgl {
#ifdef ESP_PLATFORM
static constexpr auto* PATH_PREFIX = "A:";
#else
// PC paths are relative, unlike ESP paths.
// LVGL paths require a `/` prefix, so we have to add it here:
static constexpr auto* PATH_PREFIX = "A:/";
#endif
bool isStarted();
void start();