Skip to content

Commit c170973

Browse files
Redownload BOSS files if they are not found (#504)
1 parent 8f1ee9e commit c170973

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Cafe/IOSU/legacy/iosu_boss.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ namespace iosu
284284
else if (starts_with(ptr, "Content-Type: "))
285285
{
286286
const char* type = &ptr[14];
287-
if (starts_with(type, "application/xml"))
287+
if (starts_with(type, "application/xml") || starts_with(type, "text/xml"))
288288
task->content_type = ContentType::kXmlContent;
289289
else if (starts_with(type, "x-application/octet-stream"))
290290
task->content_type = ContentType::kBinaryFile;
@@ -685,7 +685,8 @@ namespace iosu
685685
}
686686

687687
auto currentEntry = boss_storage_fad_find_entry(fad_content, file.data_id);
688-
if(currentEntry)
688+
//TODO deep dive into IOSU to figure out how caching actually works on th Wii U
689+
if(currentEntry && fs::exists(path / fmt::format(L"{:08x}", file.data_id)))
689690
{
690691
uint64 timestamp = (uint64)currentEntry->timestampRelated + kTimeStampConvertSeconds;
691692
curl_easy_setopt(curl, CURLOPT_TIMEVALUE, timestamp);

0 commit comments

Comments
 (0)