New platform APIs and new OpenAL cmake

This commit is contained in:
Eduardo Bart
2013-02-22 16:53:28 -03:00
parent 5b573afdfc
commit e4e3d7d053
6 changed files with 53 additions and 3 deletions

View File

@@ -64,6 +64,16 @@ int Platform::getProcessId()
return getpid();
}
bool Platform::isProcessRunning(const std::string& name)
{
return false;
}
bool Platform::killProcess(const std::string& name)
{
return false;
}
std::string Platform::getTempPath()
{
return "/tmp/";
@@ -74,6 +84,12 @@ bool Platform::copyFile(std::string from, std::string to)
return system(stdext::format("/bin/cp '%s' '%s'", from, to).c_str()) == 0;
}
bool Platform::fileExists(const std::string& file)
{
struct stat buffer;
return (stat(file.c_str(), &buffer) == 0);
}
void Platform::openUrl(std::string url)
{
if(url.find("http://") == std::string::npos)