We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 792440b commit da45ad9Copy full SHA for da45ad9
1 file changed
Tools/Tool_ErfExtractor.cpp
@@ -1,19 +1,19 @@
1
#include "FileFormats/Erf.hpp"
2
#include "Utility/Assert.hpp"
3
4
+namespace
5
+{
6
+
7
int extract_erf(const char* out_path, const char* in_path)
8
{
9
using namespace FileFormats::Erf;
10
- char erf_path[512];
- sprintf(erf_path, "%s/%s", in_path, kvp.first.c_str());
-
11
Raw::Erf erf_raw;
12
- bool loaded = Raw::Erf::ReadFromFile(erf_path, &erf_raw);
+ bool loaded = Raw::Erf::ReadFromFile(in_path, &erf_raw);
13
14
if (!loaded)
15
16
- std::printf("Failed to open %s.", erf_path);
+ std::printf("Failed to open %s.", in_path);
17
return 1;
18
}
19
0 commit comments