diff --git a/src/main.cpp b/src/main.cpp index 2a44621..bd4b17d 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -26,6 +26,7 @@ BinaryCode GetBinaryCode(const fs::path& filePath) { std::string fileName = filePath.filename().string(); std::remove(fileName.begin(), fileName.end(), '\"'); + std::replace(fileName.begin(), fileName.end(), ' ', '_'); std::string ressourceName = fileName; std::replace(ressourceName.begin(), ressourceName.end(), '.', '_'); @@ -35,8 +36,6 @@ BinaryCode GetBinaryCode(const fs::path& filePath) { std::vector buffer(size); if (file.read(buffer.data(), size)) { - /* worked! */ - std::stringstream ss; ss << "static const unsigned char " << ressourceName << "[] = {\n\t";