Ver Fonte

Fixed compile error related to launchUrl.
The case didn't match (launchURL vs launchUrl).

Darryl Gough há 13 anos atrás
pai
commit
7bc3230ffb

+ 1 - 1
gameplay/src/Platform.h

@@ -369,7 +369,7 @@ public:
      *
      * @return True if URL was opened successfully, false otherwise.
      */
-    static bool launchUrl(const char *url);
+    static bool launchUrl(const char* url);
     
 private:
 

+ 1 - 1
gameplay/src/PlatformBlackBerry.cpp

@@ -1419,7 +1419,7 @@ float Platform::getGamepadTriggerValue(unsigned int gamepadHandle, unsigned int
     return 0.0f;
 }
 
-bool Platform::launchURL(const char* url)
+bool Platform::launchUrl(const char* url)
 {
     if (url == NULL || *url == '\0')
         return false;

+ 2 - 1
gameplay/src/PlatformWindows.cpp

@@ -9,6 +9,7 @@
 #include "ScriptController.h"
 #include <GL/wglew.h>
 #include <windowsx.h>
+#include <shellapi.h>
 #ifdef USE_XINPUT
 #include <XInput.h>
 #endif
@@ -1454,7 +1455,7 @@ bool Platform::mouseEventInternal(Mouse::MouseEvent evt, int x, int y, int wheel
     }
 }
 
-bool Platform::launchURL(const char* url)
+bool Platform::launchUrl(const char* url)
 {
     if (url == NULL || *url == '\0')
         return false;