Skip to content

Commit cc22dd2

Browse files
committed
extra logging for phoenix::vdf_file::open
1 parent eb94921 commit cc22dd2

1 file changed

Lines changed: 9 additions & 6 deletions

File tree

game/resources.cpp

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,13 @@
2020

2121
#include <fstream>
2222

23-
#include "graphics/mesh/submesh/staticmesh.h"
24-
#include "graphics/mesh/submesh/animmesh.h"
2523
#include "graphics/mesh/submesh/pfxemittermesh.h"
2624
#include "graphics/mesh/submesh/packedmesh.h"
2725
#include "graphics/mesh/skeleton.h"
2826
#include "graphics/mesh/protomesh.h"
2927
#include "graphics/mesh/animation.h"
3028
#include "graphics/mesh/attachbinder.h"
3129
#include "graphics/material.h"
32-
#include "physics/physicmeshshape.h"
33-
#include "dmusic/music.h"
3430
#include "dmusic/directmusic.h"
3531
#include "utils/fileext.h"
3632
#include "utils/gthfont.h"
@@ -119,8 +115,15 @@ void Resources::loadVdfs(const std::vector<std::u16string>& modvdfs, bool modFil
119115
std::make_tuple(bIsMod,b.time,int(b.ord));
120116
});
121117

122-
for(auto& i:archives)
123-
inst->gothicAssets.merge(phoenix::vdf_file::open(i.name), false);
118+
for(auto& i:archives) {
119+
try {
120+
inst->gothicAssets.merge(phoenix::vdf_file::open(i.name), false);
121+
}
122+
catch(...) {
123+
Log::e("unable to load archive: \"", TextCodec::toUtf8(i.name), "\"");
124+
}
125+
}
126+
inst->gothicAssets.entries.size();
124127

125128
//for(auto& i:gothicAssets.getKnownFiles())
126129
// Log::i(i);

0 commit comments

Comments
 (0)