Skip to content

Commit

Permalink
バージョン文字列
Browse files Browse the repository at this point in the history
  • Loading branch information
voidproc committed Jul 15, 2023
1 parent 3b04a4c commit 5e51251
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dmge/Main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#include "AppConfig.h"
#include "DebugPrint.h"
#include "DebugMonitor.h"
#include "Version.h"


void LoadAssets()
Expand Down Expand Up @@ -41,7 +42,7 @@ void InitScene(int scale, bool showDebugMonitor)
{
SetWindowSize(scale, showDebugMonitor);

Window::SetTitle(U"dmge");
Window::SetTitle(U"dmge {}"_fmt(dmge::Version));

Scene::SetBackground(dmge::DebugMonitor::BgColor);

Expand Down
6 changes: 6 additions & 0 deletions dmge/Version.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#pragma once

namespace dmge
{
inline constexpr StringView Version = U"v1.0.1"_sv;
}
1 change: 1 addition & 0 deletions dmge/dmge.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,7 @@
<ClInclude Include="TileMapAttribute.h" />
<ClInclude Include="Timer.h" />
<ClInclude Include="Timing.h" />
<ClInclude Include="Version.h" />
</ItemGroup>
<ItemGroup>
<None Include="App\example\obj\blacksmith.obj">
Expand Down
6 changes: 6 additions & 0 deletions dmge/dmge.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -981,5 +981,11 @@
<ClInclude Include="TileMapAttribute.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="PPUConstants.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="Version.h">
<Filter>Header Files</Filter>
</ClInclude>
</ItemGroup>
</Project>

0 comments on commit 5e51251

Please sign in to comment.