Skip to content

Commit da45ad9

Browse files
committed
Some further fixes after the previous change.
1 parent 792440b commit da45ad9

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

Tools/Tool_ErfExtractor.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
#include "FileFormats/Erf.hpp"
22
#include "Utility/Assert.hpp"
33

4+
namespace
5+
{
6+
47
int extract_erf(const char* out_path, const char* in_path)
58
{
69
using namespace FileFormats::Erf;
710

8-
char erf_path[512];
9-
sprintf(erf_path, "%s/%s", in_path, kvp.first.c_str());
10-
1111
Raw::Erf erf_raw;
12-
bool loaded = Raw::Erf::ReadFromFile(erf_path, &erf_raw);
12+
bool loaded = Raw::Erf::ReadFromFile(in_path, &erf_raw);
1313

1414
if (!loaded)
1515
{
16-
std::printf("Failed to open %s.", erf_path);
16+
std::printf("Failed to open %s.", in_path);
1717
return 1;
1818
}
1919

0 commit comments

Comments
 (0)