Add LaunchBrowser implementation for linux
This commit is contained in:
parent
41dafa8860
commit
2dbdc24d52
|
@ -14,7 +14,7 @@
|
|||
#include <cstdint>
|
||||
#include <cstring>
|
||||
#include <type_traits>
|
||||
|
||||
#include <cmath>
|
||||
#include "xenia/base/platform.h"
|
||||
|
||||
#if XE_ARCH_AMD64
|
||||
|
|
|
@ -0,0 +1,22 @@
|
|||
/**
|
||||
******************************************************************************
|
||||
* Xenia : Xbox 360 Emulator Research Project *
|
||||
******************************************************************************
|
||||
* Copyright 2015 Ben Vanik. All rights reserved. *
|
||||
* Released under the BSD license - see LICENSE in the root for more details. *
|
||||
******************************************************************************
|
||||
*/
|
||||
|
||||
#include "xenia/base/platform_linux.h"
|
||||
#include <stdlib.h>
|
||||
#include <string>
|
||||
|
||||
namespace xe {
|
||||
|
||||
void LaunchBrowser(const char* url) {
|
||||
auto cmd = std::string("xdg-open " + std::string(url));
|
||||
system(cmd.c_str());
|
||||
}
|
||||
|
||||
|
||||
} // namespace xe
|
Loading…
Reference in New Issue