Add LaunchBrowser implementation for linux

This commit is contained in:
Doug Johnson 2016-05-12 01:43:59 -06:00
parent 41dafa8860
commit 2dbdc24d52
2 changed files with 23 additions and 1 deletions

View File

@ -14,7 +14,7 @@
#include <cstdint>
#include <cstring>
#include <type_traits>
#include <cmath>
#include "xenia/base/platform.h"
#if XE_ARCH_AMD64

View File

@ -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