-fixed downloading custom banners. thanks Larsenv for the new banner repository and the link! i didn't notice it was banners before and now its banner.

http://banner.rc24.xyz/{gameid}.bnr
edit wiiflow_lite.ini under [GENERAL] - either delete this line custom_banner_url=
or change it to custom_banner_url=http://banner.rc24.xyz/{gameid}.bnr
This commit is contained in:
fledge68 2018-07-15 22:56:31 +00:00
parent 0888312372
commit 93769c1ef4
3 changed files with 3 additions and 1 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.3 MiB

After

Width:  |  Height:  |  Size: 3.3 MiB

View File

@ -95,6 +95,7 @@ void CMenu::_CoverBanner(void)
fsop_deleteFile(fmt("%s/%.3s.bnr", m_bnrCacheDir.c_str(), id)); fsop_deleteFile(fmt("%s/%.3s.bnr", m_bnrCacheDir.c_str(), id));
fsop_deleteFile(fmt("%s/%.3s.bnr", m_customBnrDir.c_str(), id)); fsop_deleteFile(fmt("%s/%.3s.bnr", m_customBnrDir.c_str(), id));
_downloadBnr(id); _downloadBnr(id);
m_newGame = true;
_showCoverBanner(); _showCoverBanner();
} }
else if(m_btnMgr.selected(m_coverbnrBtnDeleteBanner)) else if(m_btnMgr.selected(m_coverbnrBtnDeleteBanner))
@ -104,6 +105,7 @@ void CMenu::_CoverBanner(void)
fsop_deleteFile(fmt("%s/%s.bnr", m_customBnrDir.c_str(), id)); fsop_deleteFile(fmt("%s/%s.bnr", m_customBnrDir.c_str(), id));
fsop_deleteFile(fmt("%s/%.3s.bnr", m_bnrCacheDir.c_str(), id)); fsop_deleteFile(fmt("%s/%.3s.bnr", m_bnrCacheDir.c_str(), id));
fsop_deleteFile(fmt("%s/%.3s.bnr", m_customBnrDir.c_str(), id)); fsop_deleteFile(fmt("%s/%.3s.bnr", m_customBnrDir.c_str(), id));
m_newGame = true;
_showCoverBanner(); _showCoverBanner();
} }
} }

View File

@ -22,7 +22,7 @@
#define TAG_CONSOLE "{console}" #define TAG_CONSOLE "{console}"
#define GAMETDB_URL "http://www.gametdb.com/wiitdb.zip?LANG=%s&FALLBACK=TRUE&WIIWARE=TRUE&GAMECUBE=TRUE" #define GAMETDB_URL "http://www.gametdb.com/wiitdb.zip?LANG=%s&FALLBACK=TRUE&WIIWARE=TRUE&GAMECUBE=TRUE"
#define CUSTOM_BANNER_URL "http://github.com/larsenv/Custom-Banners/raw/master/{gameid}.bnr" #define CUSTOM_BANNER_URL "http://banner.rc24.xyz/{gameid}.bnr"
static const char FMT_BPIC_URL[] = "http://art.gametdb.com/{console}/coverfullHQ/{loc}/{gameid}.png"\ static const char FMT_BPIC_URL[] = "http://art.gametdb.com/{console}/coverfullHQ/{loc}/{gameid}.png"\
"|http://art.gametdb.com/{console}/coverfull/{loc}/{gameid}.png"; "|http://art.gametdb.com/{console}/coverfull/{loc}/{gameid}.png";