refactor(simu): use SDL & ImGui (#6233)

Co-authored-by: raphaelcoeffic <1050031+raphaelcoeffic@users.noreply.github.com>
Co-authored-by: Malte Langermann <malte@langermann.net>
This commit is contained in:
Raphael Coeffic
2025-07-20 11:30:05 +02:00
committed by GitHub
co-authored by raphaelcoeffic Malte Langermann
parent 14287cb91d
commit 4eddda034d
46 changed files with 2136 additions and 1577 deletions
+4 -5
View File
@@ -87,15 +87,14 @@ std::string fixPathDelimiters(const char * path)
void simuFatfsSetPaths(const char * sdPath, const char * settingsPath)
{
if (sdPath) {
if (sdPath && strlen(sdPath) > 0) {
simuSdDirectory = removeTrailingPathDelimiter(fixPathDelimiters(sdPath));
}
else {
} else if (simuSdDirectory.empty()) {
char buff[1024];
f_getcwd(buff, sizeof(buff)-1);
f_getcwd(buff, sizeof(buff) - 1);
simuSdDirectory = removeTrailingPathDelimiter(fixPathDelimiters(buff));
}
if (settingsPath) {
if (settingsPath && strlen(settingsPath) > 0) {
simuSettingsDirectory = removeTrailingPathDelimiter(fixPathDelimiters(settingsPath));
}
TRACE_SIMPGMSPACE("simuFatfsSetPaths(): simuSdDirectory: \"%s\"", simuSdDirectory.c_str());