only check if iso path is not empty on android, split log messages by newlines to prevent truncation

SDL_GetPathInfo doesnt seem able to get valid info from android, or theres some weird permission thing going on
This commit is contained in:
CraftyBoss
2026-04-10 18:35:40 -07:00
parent d01f6bafff
commit 4ec4cd363e
2 changed files with 19 additions and 1 deletions
+4
View File
@@ -47,7 +47,11 @@ void fileDialogCallback(void* userdata, const char* const* filelist, [[maybe_unu
ImGuiPreLaunchWindow::ImGuiPreLaunchWindow() = default;
bool ImGuiPreLaunchWindow::isSelectedPathValid() const {
#if ANDROID
return !m_selectedIsoPath.empty(); // unsure why SDL_GetPathInfo doesnt work here
#else
return !m_selectedIsoPath.empty() && SDL_GetPathInfo(m_selectedIsoPath.c_str(), nullptr);
#endif
}
void ImGuiPreLaunchWindow::draw() {