fxixing spaces
This commit is contained in:
@@ -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<char> buffer(size);
|
||||
if (file.read(buffer.data(), size))
|
||||
{
|
||||
/* worked! */
|
||||
|
||||
std::stringstream ss;
|
||||
ss << "static const unsigned char " << ressourceName << "[] = {\n\t";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user