diff --git a/Makefile b/Makefile index 5923629..d9205dc 100644 --- a/Makefile +++ b/Makefile @@ -32,7 +32,7 @@ include $(DEVKITPRO)/libnx/switch_rules #--------------------------------------------------------------------------------- VERSION_MAJOR := 2 VERSION_MINOR := 1 -VERSION_MICRO := 1 +VERSION_MICRO := 2 APP_TITLE := RipJKAnime NX APP_AUTHOR := AngelXex diff --git a/out/RipJKAnime NX[05B9DB505ABBE000][v0].nsp b/out/RipJKAnime NX[05B9DB505ABBE000][v0].nsp index faa4012..644c6d5 100644 Binary files a/out/RipJKAnime NX[05B9DB505ABBE000][v0].nsp and b/out/RipJKAnime NX[05B9DB505ABBE000][v0].nsp differ diff --git a/out/RipJKAnime NX[05B9DB505ABBE000][v2.1.1].nsp b/out/RipJKAnime NX[05B9DB505ABBE000][v2.1.2].nsp similarity index 69% rename from out/RipJKAnime NX[05B9DB505ABBE000][v2.1.1].nsp rename to out/RipJKAnime NX[05B9DB505ABBE000][v2.1.2].nsp index faa4012..644c6d5 100644 Binary files a/out/RipJKAnime NX[05B9DB505ABBE000][v2.1.1].nsp and b/out/RipJKAnime NX[05B9DB505ABBE000][v2.1.2].nsp differ diff --git a/out/RipJKAnime_NX.nro b/out/RipJKAnime_NX.nro index a20af41..b70d8a8 100644 Binary files a/out/RipJKAnime_NX.nro and b/out/RipJKAnime_NX.nro differ diff --git a/out/RipJKForwader[05B9DB505ABBE000][v0].nsp b/out/RipJKForwader[05B9DB505ABBE000][v0].nsp index 08db84b..2156973 100644 Binary files a/out/RipJKForwader[05B9DB505ABBE000][v0].nsp and b/out/RipJKForwader[05B9DB505ABBE000][v0].nsp differ diff --git a/source/JKanime.cpp b/source/JKanime.cpp index c409dfb..b8c5125 100644 --- a/source/JKanime.cpp +++ b/source/JKanime.cpp @@ -370,8 +370,10 @@ int MKfavimgfix(bool images){ if(BD["arrays"]["favorites"]["images"].empty() || BD["arrays"]["favorites"]["link"].empty()){ printf("# Get fav list\n"); getFavorite(); + printf("# Goted fav list\n"); } porcentajebufferFF = BD["arrays"]["favorites"]["link"].size(); + if (porcentajebufferFF <= 0) return 0; if (images) { CheckImgVector(BD["arrays"]["favorites"]["images"],porcentajebufferF); @@ -593,8 +595,10 @@ void addFavorite(std::string text) { */ } void getFavorite() { - BD["arrays"]["favorites"]["link"].clear(); - BD["arrays"]["favorites"]["images"].clear(); + if(!BD["arrays"]["favorites"].empty()){ + BD["arrays"]["favorites"]["link"].clear(); + BD["arrays"]["favorites"]["images"].clear(); + } std::string temp; std::ifstream file(rootdirectory+"favoritos.txt"); std::string str; diff --git a/source/main.cpp b/source/main.cpp index c3d8b07..08373a5 100644 --- a/source/main.cpp +++ b/source/main.cpp @@ -57,8 +57,6 @@ int main(int argc, char **argv) SDL_Thread* searchthread = NULL; SDL_Thread* downloadthread = NULL; - //Set main Thread get images and descriptions - prothread = SDL_CreateThread(refrescarpro, "prothread", (void*)NULL); //set custom music GOD.intA();//init the SDL @@ -147,6 +145,9 @@ int main(int argc, char **argv) } try{ + //Set main Thread get images and descriptions + prothread = SDL_CreateThread(refrescarpro, "prothread", (void*)NULL); + //While application is running while (!quit) {