Path fixes for simulator (#357)
This commit is contained in:
committed by
GitHub
parent
efd9662cfc
commit
a05a6afaaf
@@ -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
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user