diff --git a/es-app/src/scrapers/GamesDBScraper.cpp b/es-app/src/scrapers/GamesDBScraper.cpp index ea78e374e..f62780411 100644 --- a/es-app/src/scrapers/GamesDBScraper.cpp +++ b/es-app/src/scrapers/GamesDBScraper.cpp @@ -67,7 +67,7 @@ const std::map gamesdb_platformid_map = boost::assign:: void thegamesdb_generate_scraper_requests(const ScraperSearchParams& params, std::queue< std::unique_ptr >& requests, std::vector& results) { - std::string path = "thegamesdb.net/api/GetGame.php?"; + std::string path = "legacy.thegamesdb.net/api/GetGame.php?"; std::string cleanName = params.nameOverride; if(cleanName.empty()) diff --git a/es-core/src/Util.cpp b/es-core/src/Util.cpp index 198e10a82..f80bd8fec 100644 --- a/es-core/src/Util.cpp +++ b/es-core/src/Util.cpp @@ -26,7 +26,7 @@ std::string strToUpper(const std::string& str) } -#if _MSC_VER < 1800 +#if defined(_WIN32) && _MSC_VER < 1800 float round(float num) { return (float)((int)(num + 0.5f)); diff --git a/es-core/src/Util.h b/es-core/src/Util.h index 5bf2a1275..1523fa6a4 100644 --- a/es-core/src/Util.h +++ b/es-core/src/Util.h @@ -15,7 +15,9 @@ Eigen::Affine3f roundMatrix(const Eigen::Affine3f& mat); Eigen::Vector3f roundVector(const Eigen::Vector3f& vec); Eigen::Vector2f roundVector(const Eigen::Vector2f& vec); +#if defined(_WIN32) && _MSC_VER < 1800 float round(float num); +#endif std::string getCanonicalPath(const std::string& str);