From 5d0eb9413c24260c499ca15705fdb3ad78bb84be Mon Sep 17 00:00:00 2001 From: Persson-dev Date: Tue, 20 Jun 2023 21:52:53 +0200 Subject: [PATCH] fxixing spaces --- src/main.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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";