Added love.system.openURL (resolves issue #863)

This commit is contained in:
Alex Szpakowski
2014-03-31 16:13:05 -03:00
parent c985b1f2f7
commit 38497d23da
7 changed files with 132 additions and 4 deletions
+10
View File
@@ -85,6 +85,16 @@ public:
**/
virtual PowerState getPowerInfo(int &seconds, int &percent) const = 0;
/**
* Opens the specified URL with the user's default program to handle that
* particular URL type.
*
* @param url The URL to open.
*
* @return Whether the URL was opened successfully.
**/
virtual bool openURL(const std::string &url) const;
static bool getConstant(const char *in, PowerState &out);
static bool getConstant(PowerState in, const char *&out);