mirror of
https://github.com/xenia-project/xenia.git
synced 2025-12-06 07:12:03 +01:00
Implement LaunchFileExplorer the same as LaunchWebBrowser.
This commit is contained in:
parent
b43cb2ed8e
commit
63c2d94a98
|
|
@ -29,7 +29,11 @@ void LaunchWebBrowser(const std::string_view url) {
|
||||||
system(cmd.c_str());
|
system(cmd.c_str());
|
||||||
}
|
}
|
||||||
|
|
||||||
void LaunchFileExplorer(const std::filesystem::path& path) { assert_always(); }
|
void LaunchFileExplorer(const std::filesystem::path& path) {
|
||||||
|
auto cmd = std::string("xdg-open ");
|
||||||
|
cmd.append(path);
|
||||||
|
system(cmd.c_str());
|
||||||
|
}
|
||||||
|
|
||||||
void ShowSimpleMessageBox(SimpleMessageBoxType type, std::string_view message) {
|
void ShowSimpleMessageBox(SimpleMessageBoxType type, std::string_view message) {
|
||||||
void* libsdl2 = dlopen("libSDL2.so", RTLD_LAZY | RTLD_LOCAL);
|
void* libsdl2 = dlopen("libSDL2.so", RTLD_LAZY | RTLD_LOCAL);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue