From c812c68da92a923fcd4a56a5546919c0cdb81838 Mon Sep 17 00:00:00 2001 From: Kronos2308 <36446521+Kronos2308@users.noreply.github.com> Date: Mon, 5 Apr 2021 21:06:00 +0100 Subject: [PATCH] Fix Jkanime search --- source/JKanime.hpp | 15 +++++++-------- source/SDLWork.cpp | 1 + source/SDLWork.hpp | 1 + source/main.cpp | 2 +- 4 files changed, 10 insertions(+), 9 deletions(-) diff --git a/source/JKanime.hpp b/source/JKanime.hpp index 7ea7726..902a7a1 100644 --- a/source/JKanime.hpp +++ b/source/JKanime.hpp @@ -250,10 +250,7 @@ int refrescarpro(void* data){ temp0=content.find("ProgramaciĆ³n"); temp1=content.find("TOP ANIMES",temp0); content = content.substr(temp0,temp1-temp0); -// std::cout << "---" << val0 << std::endl; - -printf("--\n"); while (val0 != -1 && !quit) { val0 = content.find("", ""); + replace(terese, """, ""); con_rese.push_back(terese); @@ -384,7 +382,7 @@ int MKcapitBuffer() { con_nextdate.push_back(terese); - int indx1 = 1, indx2, indx3, indx4; + int indx1 = 1, indx2, indx3; indx1 = a.find("Genero:", indx1); std::string generosTMP=""; while (indx1 != -1) { @@ -509,7 +507,7 @@ int searchjk(void* data) int val0 = 0,val1 = 1,val2,val3, val4; while (val0 != -1) { - val0 = content.find("portada-title", val1); + val0 = content.find("
", val1); if (val0 == -1) { break; } val1 = 6 + content.find("href=", val0); @@ -518,7 +516,7 @@ int searchjk(void* data) arraysearch.push_back(gdrive); - val3 = content.find("", ""); + replace(terese, """, ""); rese = terese; std::cout << rese << std::endl; @@ -612,7 +611,7 @@ int capit(void* data) { } } - int indx1 = 1, indx2, indx3, indx4; + int indx1 = 1, indx2, indx3; indx1 = a.find("Genero:", indx1); std::string generosTMP=""; while (indx1 != -1) { diff --git a/source/SDLWork.cpp b/source/SDLWork.cpp index f918260..c743917 100644 --- a/source/SDLWork.cpp +++ b/source/SDLWork.cpp @@ -117,6 +117,7 @@ void SDLB::intA(){ gFont2 = TTF_OpenFont("romfs:/lazy2.ttf", 150); gFontcapit = TTF_OpenFont("romfs:/lazy2.ttf", 100); gFont3 = TTF_OpenFont("romfs:/lazy2.ttf", 40); + gFont4 = TTF_OpenFont("romfs:/lazy2.ttf", 30); digifont = TTF_OpenFont("romfs:/digifont.otf", 16); #else diff --git a/source/SDLWork.hpp b/source/SDLWork.hpp index 50cfb32..a29cb60 100644 --- a/source/SDLWork.hpp +++ b/source/SDLWork.hpp @@ -11,6 +11,7 @@ TTF_Font* digifont = NULL; TTF_Font *gFontcapit = NULL; TTF_Font *gFont2 = NULL; TTF_Font *gFont3 = NULL; +TTF_Font *gFont4 = NULL; Mix_Music* gMusic = NULL; int TouchX=-1; int TouchY=-1; diff --git a/source/main.cpp b/source/main.cpp index 0737abd..e94090a 100644 --- a/source/main.cpp +++ b/source/main.cpp @@ -800,7 +800,7 @@ int main(int argc, char **argv) } T_R.render(posxbase+15, posybase + 65); - gTextTexture.loadFromRenderedTextWrap(GOD.gFont3, generos, textColor,750); + gTextTexture.loadFromRenderedTextWrap(GOD.gFont4, generos, textColor,750); gTextTexture.render(posxbase+25, posybase + 380-gTextTexture.getHeight()); }