diff --git a/GpCommon/GpApplicationName.h b/GpCommon/GpApplicationName.h new file mode 100644 index 0000000..c5c08b1 --- /dev/null +++ b/GpCommon/GpApplicationName.h @@ -0,0 +1,4 @@ +#pragma once + +#define GP_APPLICATION_NAME "Aerofoil" +#define GP_APPLICATION_NAME_W L"Aerofoil" diff --git a/GpD3D/GpD3D.rc b/GpD3D/GpD3D.rc index 3adbcb0..a7a746a 100644 Binary files a/GpD3D/GpD3D.rc and b/GpD3D/GpD3D.rc differ diff --git a/GpD3D/GpD3D.vcxproj b/GpD3D/GpD3D.vcxproj index ef61767..a900af2 100644 --- a/GpD3D/GpD3D.vcxproj +++ b/GpD3D/GpD3D.vcxproj @@ -169,6 +169,7 @@ + diff --git a/GpD3D/GpD3D.vcxproj.filters b/GpD3D/GpD3D.vcxproj.filters index 0196bae..019f16b 100644 --- a/GpD3D/GpD3D.vcxproj.filters +++ b/GpD3D/GpD3D.vcxproj.filters @@ -197,6 +197,9 @@ Header Files + + Header Files + diff --git a/GpD3D/GpFileSystem_Win32.cpp b/GpD3D/GpFileSystem_Win32.cpp index 9201eaa..a75c8f4 100644 --- a/GpD3D/GpFileSystem_Win32.cpp +++ b/GpD3D/GpFileSystem_Win32.cpp @@ -1,4 +1,6 @@ #include "GpFileSystem_Win32.h" + +#include "GpApplicationName.h" #include "GpFileStream_Win32.h" #include "GpWindows.h" #include "GpMemoryBuffer.h" @@ -295,7 +297,7 @@ bool GpFileSystem_Win32::PromptSaveFile(PortabilityLayer::VirtualDirectory_t vir memset(&ofn, 0, sizeof(ofn)); ofn.lStructSize = sizeof(ofn); - ofn.lpstrFilter = L"GlidePort File (*.gpf)\0*.gpf\0"; + ofn.lpstrFilter = GP_APPLICATION_NAME_W L" File (*.gpf)\0*.gpf\0"; ofn.lpstrFile = baseFN; ofn.lpstrDefExt = L"gpf"; ofn.nMaxFile = MAX_PATH; diff --git a/GpDisplayDriver_D3D11/GpDisplayDriverD3D11.cpp b/GpDisplayDriver_D3D11/GpDisplayDriverD3D11.cpp index 0032798..2eab320 100644 --- a/GpDisplayDriver_D3D11/GpDisplayDriverD3D11.cpp +++ b/GpDisplayDriver_D3D11/GpDisplayDriverD3D11.cpp @@ -1,4 +1,5 @@ #define _CRT_SECURE_NO_WARNINGS +#include "GpApplicationName.h" #include "GpDisplayDriverD3D11.h" #include "GpDisplayDriverSurfaceD3D11.h" #include "GpWindows.h" @@ -546,7 +547,7 @@ void GpDisplayDriverD3D11::Run() RECT wr = { 0, 0, m_windowWidth, m_windowHeight }; AdjustWindowRect(&wr, windowStyle, menus != NULL); - m_hwnd = CreateWindowExW(NULL, L"GPD3D11WindowClass", L"GlidePort (Direct3D 11)", WS_OVERLAPPEDWINDOW, 300, 300, wr.right - wr.left, wr.bottom - wr.top, NULL, menus, m_osGlobals->m_hInstance, NULL); + m_hwnd = CreateWindowExW(NULL, L"GPD3D11WindowClass", GP_APPLICATION_NAME_W L" (Direct3D 11)", WS_OVERLAPPEDWINDOW, 300, 300, wr.right - wr.left, wr.bottom - wr.top, NULL, menus, m_osGlobals->m_hInstance, NULL); ShowWindow(m_hwnd, m_osGlobals->m_nCmdShow);