Skip to content

Commit

Permalink
Don't skip over first byte in the buffer when creating an .inc header…
Browse files Browse the repository at this point in the history
… file.
  • Loading branch information
JPeterMugaas committed Jun 12, 2024
1 parent 39c93ce commit bddfa19
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

cmake_minimum_required (VERSION 3.21)

set(EFXC2_VERSION 0.0.11.242)
set(EFXC2_VERSION 0.0.11.243)
project (efxc2 VERSION ${EFXC2_VERSION}
DESCRIPTION "Enhanced fxc2"
HOMEPAGE_URL "https://github.com/JPeterMugaas/efxc2"
Expand Down
2 changes: 1 addition & 1 deletion efxc2Utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,6 @@ void efxc2Utils::WriteByteArrayConst(_In_ std::ofstream& f, ID3DBlob* data,
f << std::format("const BYTE {}[] =\n{{\n", variableName);
auto p = std::bit_cast<unsigned char*>(data->GetBufferPointer());
for (size_t i = 0; i < len; i++) {
++p;
if (outputHex) {
f << std::format(" 0x{:02x}", *p);
}
Expand All @@ -172,6 +171,7 @@ void efxc2Utils::WriteByteArrayConst(_In_ std::ofstream& f, ID3DBlob* data,
if ((i % 6 == 5) && (i != len - 1)) {
f << "\n";
}
++p;
}
f << "\n};\n";
return;
Expand Down

0 comments on commit bddfa19

Please sign in to comment.