mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-14 08:04:40 +00:00
Change shorts to ints
This commit is contained in:
parent
90dc11410b
commit
909892f40e
1 changed files with 3 additions and 3 deletions
|
|
@ -5,15 +5,15 @@ bool Platform::openWebBrowser(const char* webAddress)
|
||||||
String startingURL(webAddress);
|
String startingURL(webAddress);
|
||||||
String filteredURL;
|
String filteredURL;
|
||||||
|
|
||||||
U16 length = startingURL.length();
|
U32 length = startingURL.length();
|
||||||
for(U16 i = 0; i < length; i++)
|
for(U32 i = 0; i < length; i++)
|
||||||
{
|
{
|
||||||
filteredURL = filteredURL + '\\' + startingURL[i];
|
filteredURL = filteredURL + '\\' + startingURL[i];
|
||||||
}
|
}
|
||||||
|
|
||||||
String runCommand = "URL=" + filteredURL + "; xdg-open $URL > /dev/null 2> /dev/null";
|
String runCommand = "URL=" + filteredURL + "; xdg-open $URL > /dev/null 2> /dev/null";
|
||||||
|
|
||||||
S16 statusCode;
|
S32 statusCode;
|
||||||
statusCode = system(runCommand.c_str());
|
statusCode = system(runCommand.c_str());
|
||||||
|
|
||||||
if(statusCode == 0)
|
if(statusCode == 0)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue