File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -939,11 +939,11 @@ class GameTab
939939
940940 static std::string ChangeRunesOpgg ()
941941 {
942- std::string champSelect = LCU::Request (" GET" , " /lol-champ-select/v1/session" );
943- if (champSelect.empty () || champSelect.find (" RPC_ERROR" ) != std::string::npos)
944- {
945- return " Champion select not found" ;
946- }
942+ /* std::string champSelect = LCU::Request("GET", "/lol-champ-select/v1/session");
943+ if (champSelect.empty() || champSelect.find("RPC_ERROR") != std::string::npos)
944+ {
945+ return "Champion select not found";
946+ } */
947947
948948 Json::CharReaderBuilder builder;
949949 const std::unique_ptr<Json::CharReader> reader (builder.newCharReader ());
@@ -957,7 +957,7 @@ class GameTab
957957 // }
958958
959959 std::string currentChampion = LCU::Request (" GET" , " /lol-champ-select/v1/current-champion" );
960- if (currentChampion == " 0" )
960+ if (currentChampion == " 0" || currentChampion. empty () || currentChampion. find ( " RPC_ERROR " ) != std::string::npos )
961961 {
962962 return " Champion not picked" ;
963963 }
@@ -989,7 +989,8 @@ class GameTab
989989 if (runes.size () == 9 )
990990 break ;
991991
992- if (buf.find (" src=\" https://opgg-static.akamaized.net/images/lol/perk" ) != std::string::npos)
992+ if (buf.find (" src=\" https://opgg-static.akamaized.net/images/lol/perk" ) != std::string::npos
993+ || buf.find (" src=\" https://opgg-static.akamaized.net/meta/images/lol/perk" ) != std::string::npos)
993994 {
994995 if (buf.find (" grayscale" ) != std::string::npos)
995996 continue ;
You can’t perform that action at this time.
0 commit comments