x86UNIXPlatform.cpp
Engine/source/platformX86UNIX/x86UNIXPlatform.cpp
Detailed Description
1 2#include "platform/platform.h" 3#ifndef TORQUE_SDL 4bool Platform::openWebBrowser(const char* webAddress) 5{ 6 String startingURL(webAddress); 7 String filteredURL; 8 9 U32 length = startingURL.length(); 10 for(U32 i = 0; i < length; i++) 11 { 12 filteredURL = filteredURL + '\\' + startingURL[i]; 13 } 14 15 String runCommand = "URL=" + filteredURL + "; xdg-open $URL > /dev/null 2> /dev/null"; 16 17 S32 statusCode; 18 statusCode = system(runCommand.c_str()); 19 20 if(statusCode == 0) 21 { 22 return true; 23 } 24 25 return false; 26} 27#endif 28#ifdef TORQUE_DEDICATED 29// XA: New class for the unix unicode font 30class PlatformFont; 31PlatformFont *createPlatformFont(const char *name, dsize_t size, U32 charset /* = TGE_ANSI_CHARSET */) { return NULL; } 32#endif 33