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:
co-authored by
raphaelcoeffic
Malte Langermann
parent
14287cb91d
commit
4eddda034d
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user