mirror of
https://github.com/Fledge68/WiiFlow_Lite.git
synced 2025-01-23 01:01:12 +01:00
Update english.ini
Stop 0 size covers from being created
This commit is contained in:
parent
f94e65a54d
commit
7c4bb1fa04
@ -590,7 +590,7 @@ int CMenu::_coverDownloader(bool missingOnly)
|
|||||||
for( int o = 0; o < 12; ++o )
|
for( int o = 0; o < 12; ++o )
|
||||||
{
|
{
|
||||||
bool tdl = false;
|
bool tdl = false;
|
||||||
if( download.data != NULL )
|
if(download.data != NULL && download.size > 0 && checkPNGBuf(download.data))
|
||||||
break;
|
break;
|
||||||
switch( o )
|
switch( o )
|
||||||
{
|
{
|
||||||
@ -680,30 +680,31 @@ int CMenu::_coverDownloader(bool missingOnly)
|
|||||||
download = downloadfile(buffer.get(), bufferSize, url.c_str(), CMenu::_downloadProgress, this);
|
download = downloadfile(buffer.get(), bufferSize, url.c_str(), CMenu::_downloadProgress, this);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (download.data != NULL)
|
|
||||||
{
|
|
||||||
if (savePNG)
|
|
||||||
{
|
|
||||||
LWP_MutexLock(m_mutex);
|
|
||||||
_setThrdMsg(wfmt(_fmt("dlmsg4", L"Saving %s"), path.c_str()), listWeight + dlWeight * (float)(step + 1) / (float)nbSteps);
|
|
||||||
LWP_MutexUnlock(m_mutex);
|
|
||||||
file = fopen(path.c_str(), "wb");
|
|
||||||
if (file != NULL)
|
|
||||||
{
|
|
||||||
fwrite(download.data, download.size, 1, file);
|
|
||||||
fclose(file);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
if(download.data == NULL || download.size == 0 || !checkPNGBuf(download.data))
|
||||||
|
continue;
|
||||||
|
|
||||||
|
if (savePNG)
|
||||||
|
{
|
||||||
LWP_MutexLock(m_mutex);
|
LWP_MutexLock(m_mutex);
|
||||||
_setThrdMsg(wfmt(_fmt("dlmsg10", L"Making %s"), sfmt("%s.wfc", coverList[i].c_str()).c_str()), listWeight + dlWeight * (float)(step + 1) / (float)nbSteps);
|
_setThrdMsg(wfmt(_fmt("dlmsg4", L"Saving %s"), path.c_str()), listWeight + dlWeight * (float)(step + 1) / (float)nbSteps);
|
||||||
LWP_MutexUnlock(m_mutex);
|
LWP_MutexUnlock(m_mutex);
|
||||||
if (m_cf.preCacheCover(coverList[i].c_str(), download.data, true))
|
file = fopen(path.c_str(), "wb");
|
||||||
|
if (file != NULL)
|
||||||
{
|
{
|
||||||
++count;
|
fwrite(download.data, download.size, 1, file);
|
||||||
success = true;
|
fclose(file);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
LWP_MutexLock(m_mutex);
|
||||||
|
_setThrdMsg(wfmt(_fmt("dlmsg10", L"Making %s"), sfmt("%s.wfc", coverList[i].c_str()).c_str()), listWeight + dlWeight * (float)(step + 1) / (float)nbSteps);
|
||||||
|
LWP_MutexUnlock(m_mutex);
|
||||||
|
if (m_cf.preCacheCover(coverList[i].c_str(), download.data, true))
|
||||||
|
{
|
||||||
|
++count;
|
||||||
|
success = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -729,7 +730,7 @@ int CMenu::_coverDownloader(bool missingOnly)
|
|||||||
for( int o = 0; o < 12; ++o )
|
for( int o = 0; o < 12; ++o )
|
||||||
{
|
{
|
||||||
bool tdl = false;
|
bool tdl = false;
|
||||||
if( download.data != NULL )
|
if(download.data != NULL && download.size > 0 && checkPNGBuf(download.data))
|
||||||
break;
|
break;
|
||||||
|
|
||||||
switch( o )
|
switch( o )
|
||||||
@ -824,30 +825,30 @@ int CMenu::_coverDownloader(bool missingOnly)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (download.data != NULL)
|
if(download.data == NULL || download.size == 0 || !checkPNGBuf(download.data))
|
||||||
{
|
continue;
|
||||||
if (savePNG)
|
|
||||||
{
|
|
||||||
LWP_MutexLock(m_mutex);
|
|
||||||
_setThrdMsg(wfmt(_fmt("dlmsg4", L"Saving %s"), path.c_str()), listWeight + dlWeight * (float)(step + 1) / (float)nbSteps);
|
|
||||||
LWP_MutexUnlock(m_mutex);
|
|
||||||
file = fopen(path.c_str(), "wb");
|
|
||||||
if (file != NULL)
|
|
||||||
{
|
|
||||||
fwrite(download.data, download.size, 1, file);
|
|
||||||
fclose(file);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
if (savePNG)
|
||||||
|
{
|
||||||
LWP_MutexLock(m_mutex);
|
LWP_MutexLock(m_mutex);
|
||||||
_setThrdMsg(wfmt(_fmt("dlmsg10", L"Making %s"), sfmt("%s.wfc", coverList[i].c_str()).c_str()), listWeight + dlWeight * (float)(step + 1) / (float)nbSteps);
|
_setThrdMsg(wfmt(_fmt("dlmsg4", L"Saving %s"), path.c_str()), listWeight + dlWeight * (float)(step + 1) / (float)nbSteps);
|
||||||
LWP_MutexUnlock(m_mutex);
|
LWP_MutexUnlock(m_mutex);
|
||||||
if (m_cf.preCacheCover(coverList[i].c_str(), download.data, true))
|
file = fopen(path.c_str(), "wb");
|
||||||
|
if (file != NULL)
|
||||||
{
|
{
|
||||||
++count;
|
fwrite(download.data, download.size, 1, file);
|
||||||
success = true;
|
fclose(file);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
LWP_MutexLock(m_mutex);
|
||||||
|
_setThrdMsg(wfmt(_fmt("dlmsg10", L"Making %s"), sfmt("%s.wfc", coverList[i].c_str()).c_str()), listWeight + dlWeight * (float)(step + 1) / (float)nbSteps);
|
||||||
|
LWP_MutexUnlock(m_mutex);
|
||||||
|
if (m_cf.preCacheCover(coverList[i].c_str(), download.data, true))
|
||||||
|
{
|
||||||
|
++count;
|
||||||
|
success = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -873,7 +874,7 @@ int CMenu::_coverDownloader(bool missingOnly)
|
|||||||
for( int o = 0; o < 12; ++o )
|
for( int o = 0; o < 12; ++o )
|
||||||
{
|
{
|
||||||
bool tdl = false;
|
bool tdl = false;
|
||||||
if( download.data != NULL )
|
if(download.data != NULL && download.size > 0 && checkPNGBuf(download.data))
|
||||||
break;
|
break;
|
||||||
|
|
||||||
switch( o )
|
switch( o )
|
||||||
@ -967,30 +968,30 @@ int CMenu::_coverDownloader(bool missingOnly)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (download.data != NULL)
|
if(download.data == NULL || download.size == 0 || !checkPNGBuf(download.data))
|
||||||
{
|
continue;
|
||||||
if (savePNG)
|
|
||||||
{
|
|
||||||
LWP_MutexLock(m_mutex);
|
|
||||||
_setThrdMsg(wfmt(_fmt("dlmsg4", L"Saving %s"), path.c_str()), listWeight + dlWeight * (float)(step + 1) / (float)nbSteps);
|
|
||||||
LWP_MutexUnlock(m_mutex);
|
|
||||||
file = fopen(path.c_str(), "wb");
|
|
||||||
if (file != NULL)
|
|
||||||
{
|
|
||||||
fwrite(download.data, download.size, 1, file);
|
|
||||||
fclose(file);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
if (savePNG)
|
||||||
|
{
|
||||||
LWP_MutexLock(m_mutex);
|
LWP_MutexLock(m_mutex);
|
||||||
_setThrdMsg(wfmt(_fmt("dlmsg10", L"Making %s"), sfmt("%s.wfc", coverList[i].c_str()).c_str()), listWeight + dlWeight * (float)(step + 1) / (float)nbSteps);
|
_setThrdMsg(wfmt(_fmt("dlmsg4", L"Saving %s"), path.c_str()), listWeight + dlWeight * (float)(step + 1) / (float)nbSteps);
|
||||||
LWP_MutexUnlock(m_mutex);
|
LWP_MutexUnlock(m_mutex);
|
||||||
if (m_cf.preCacheCover(coverList[i].c_str(), download.data, false))
|
file = fopen(path.c_str(), "wb");
|
||||||
|
if (file != NULL)
|
||||||
{
|
{
|
||||||
++countFlat;
|
fwrite(download.data, download.size, 1, file);
|
||||||
success = true;
|
fclose(file);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
LWP_MutexLock(m_mutex);
|
||||||
|
_setThrdMsg(wfmt(_fmt("dlmsg10", L"Making %s"), sfmt("%s.wfc", coverList[i].c_str()).c_str()), listWeight + dlWeight * (float)(step + 1) / (float)nbSteps);
|
||||||
|
LWP_MutexUnlock(m_mutex);
|
||||||
|
if (m_cf.preCacheCover(coverList[i].c_str(), download.data, false))
|
||||||
|
{
|
||||||
|
++countFlat;
|
||||||
|
success = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1016,7 +1017,7 @@ int CMenu::_coverDownloader(bool missingOnly)
|
|||||||
for( int o = 0; o < 12; ++o )
|
for( int o = 0; o < 12; ++o )
|
||||||
{
|
{
|
||||||
bool tdl = false;
|
bool tdl = false;
|
||||||
if( download.data != NULL )
|
if(download.data != NULL && download.size > 0 && checkPNGBuf(download.data))
|
||||||
break;
|
break;
|
||||||
|
|
||||||
switch( o )
|
switch( o )
|
||||||
@ -1109,30 +1110,31 @@ int CMenu::_coverDownloader(bool missingOnly)
|
|||||||
download = downloadfile(buffer.get(), bufferSize, url.c_str(), CMenu::_downloadProgress, this);
|
download = downloadfile(buffer.get(), bufferSize, url.c_str(), CMenu::_downloadProgress, this);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (download.data != NULL)
|
|
||||||
{
|
|
||||||
if (savePNG)
|
|
||||||
{
|
|
||||||
LWP_MutexLock(m_mutex);
|
|
||||||
_setThrdMsg(wfmt(_fmt("dlmsg4", L"Saving %s"), path.c_str()), listWeight + dlWeight * (float)(step + 1) / (float)nbSteps);
|
|
||||||
LWP_MutexUnlock(m_mutex);
|
|
||||||
file = fopen(path.c_str(), "wb");
|
|
||||||
if (file != NULL)
|
|
||||||
{
|
|
||||||
fwrite(download.data, download.size, 1, file);
|
|
||||||
fclose(file);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
if(download.data == NULL || download.size == 0 || !checkPNGBuf(download.data))
|
||||||
|
continue;
|
||||||
|
|
||||||
|
if (savePNG)
|
||||||
|
{
|
||||||
LWP_MutexLock(m_mutex);
|
LWP_MutexLock(m_mutex);
|
||||||
_setThrdMsg(wfmt(_fmt("dlmsg10", L"Making %s"), sfmt("%s.wfc", coverList[i].c_str()).c_str()), listWeight + dlWeight * (float)(step + 1) / (float)nbSteps);
|
_setThrdMsg(wfmt(_fmt("dlmsg4", L"Saving %s"), path.c_str()), listWeight + dlWeight * (float)(step + 1) / (float)nbSteps);
|
||||||
LWP_MutexUnlock(m_mutex);
|
LWP_MutexUnlock(m_mutex);
|
||||||
if (m_cf.preCacheCover(coverList[i].c_str(), download.data, false))
|
file = fopen(path.c_str(), "wb");
|
||||||
|
if (file != NULL)
|
||||||
{
|
{
|
||||||
++countFlat;
|
fwrite(download.data, download.size, 1, file);
|
||||||
success = true;
|
fclose(file);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
LWP_MutexLock(m_mutex);
|
||||||
|
_setThrdMsg(wfmt(_fmt("dlmsg10", L"Making %s"), sfmt("%s.wfc", coverList[i].c_str()).c_str()), listWeight + dlWeight * (float)(step + 1) / (float)nbSteps);
|
||||||
|
LWP_MutexUnlock(m_mutex);
|
||||||
|
if (m_cf.preCacheCover(coverList[i].c_str(), download.data, false))
|
||||||
|
{
|
||||||
|
++countFlat;
|
||||||
|
success = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -22,6 +22,7 @@ byplayers=By Players
|
|||||||
bywifiplayers=By Wifi Players
|
bywifiplayers=By Wifi Players
|
||||||
cd1=Back
|
cd1=Back
|
||||||
cd2=Erase
|
cd2=Erase
|
||||||
|
cd3=Age Lock
|
||||||
cfg1=Settings
|
cfg1=Settings
|
||||||
cfg10=Back
|
cfg10=Back
|
||||||
cfg11=USB Saves Emulation
|
cfg11=USB Saves Emulation
|
||||||
|
Loading…
x
Reference in New Issue
Block a user