diff --git a/GlosSITarget/Overlay.cpp b/GlosSITarget/Overlay.cpp index 9c0ae4f..33fe78d 100644 --- a/GlosSITarget/Overlay.cpp +++ b/GlosSITarget/Overlay.cpp @@ -38,7 +38,7 @@ Overlay::Overlay( io.Fonts->Clear(); // clear fonts if you loaded some before (even if only default one was loaded) auto fontconf = ImFontConfig{}; fontconf.FontDataOwnedByAtlas = false; - io.Fonts->AddFontFromMemoryTTF(Roboto_Regular_ttf, Roboto_Regular_ttf_len, 24, &fontconf); + io.Fonts->AddFontFromMemoryTTF(Roboto_Regular_ttf.data(), Roboto_Regular_ttf.size(), 24, &fontconf); ImGui::SFML::UpdateFontTexture(); // important call: updates font texture #ifdef _WIN32 diff --git a/GlosSITarget/Resource.rc b/GlosSITarget/Resource.rc index 440f5c1..8c57e30 100644 --- a/GlosSITarget/Resource.rc +++ b/GlosSITarget/Resource.rc @@ -51,8 +51,8 @@ END // VS_VERSION_INFO VERSIONINFO - FILEVERSION 0,0,0,0657006 - PRODUCTVERSION 0,0,0,0657006 + FILEVERSION 0,0,0,5419086 + PRODUCTVERSION 0,0,0,5419086 FILEFLAGSMASK 0x3fL #ifdef _DEBUG FILEFLAGS 0x1L @@ -69,12 +69,12 @@ BEGIN BEGIN VALUE "CompanyName", "Peter Repukat - FlatspotSoftware" VALUE "FileDescription", "GlosSI - SteamTarget" - VALUE "FileVersion", "0.0.0.f657dd6" + VALUE "FileVersion", "0.0.0.5419d86" VALUE "InternalName", "GlosSITarget" VALUE "LegalCopyright", "Copyright (C) 2021 Peter Repukat - FlatspotSoftware" VALUE "OriginalFilename", "GlosSITarget.exe" VALUE "ProductName", "GlosSI" - VALUE "ProductVersion", "0.0.0.f657dd6" + VALUE "ProductVersion", "0.0.0.5419d86" END END BLOCK "VarFileInfo" @@ -327,6 +327,10 @@ END + + + + diff --git a/GlosSITarget/Roboto.h b/GlosSITarget/Roboto.h index f942795..efdad91 100644 --- a/GlosSITarget/Roboto.h +++ b/GlosSITarget/Roboto.h @@ -16,8 +16,9 @@ limitations under the License. #pragma once // This is way easier than to package resources or lookup the app file path dynamically... +#include -unsigned char Roboto_Regular_ttf[] = { +std::vector Roboto_Regular_ttf = { 0x00, 0x01, 0x00, 0x00, 0x00, 0x12, 0x01, 0x00, 0x00, 0x04, 0x00, 0x20, 0x47, 0x44, 0x45, 0x46, 0xb4, 0x42, 0xb0, 0x82, 0x00, 0x02, 0x1b, 0x84, 0x00, 0x00, 0x02, 0x62, 0x47, 0x50, 0x4f, 0x53, 0xff, 0x1a, 0x12, 0xd7, @@ -14040,5 +14041,4 @@ unsigned char Roboto_Regular_ttf[] = { 0x00, 0x0a, 0x02, 0x3e, 0x00, 0x7a, 0x00, 0x73, 0x00, 0x74, 0x02, 0x3f, 0x02, 0x40, 0x02, 0x41, 0x02, 0x42, 0x02, 0x43, 0x02, 0x44, 0x00, 0x02, 0x00, 0x01, 0x00, 0x14, 0x00, 0x1d, 0x00, 0x00 -}; -unsigned int Roboto_Regular_ttf_len = 168260; +}; \ No newline at end of file