Rename some system functions, merge the Launch* ones.

android launchurl buildfix
This commit is contained in:
Henrik Rydgård 2023-03-21 10:42:23 +01:00
parent a9eaa4fdc8
commit d3955b42bb
32 changed files with 178 additions and 207 deletions

View file

@ -295,18 +295,18 @@ void System_InputBoxGetString(const std::string &title, const std::string &defau
}
}
void Vibrate(int length_ms) {
void System_Vibrate(int length_ms) {
if (length_ms == -1 || length_ms == -3)
length_ms = 50;
else if (length_ms == -2)
length_ms = 25;
}
void OpenDirectory(const char *path) {
void System_ShowFileInFolder(const char *path) {
QDesktopServices::openUrl(QUrl::fromLocalFile(QString::fromUtf8(path)));
}
void LaunchBrowser(const char *url)
void System_LaunchUrl(LaunchUrlType urlType, const char *url)
{
QDesktopServices::openUrl(QUrl(url));
}