From 3642f0c045dd215377eef116212c1a7709af59e9 Mon Sep 17 00:00:00 2001 From: elasota Date: Fri, 3 Jan 2020 00:17:45 -0500 Subject: [PATCH] Rename to Aerofoil --- GpCommon/GpApplicationName.h | 4 ++++ GpD3D/GpD3D.rc | Bin 5270 -> 5244 bytes GpD3D/GpD3D.vcxproj | 1 + GpD3D/GpD3D.vcxproj.filters | 3 +++ GpD3D/GpFileSystem_Win32.cpp | 4 +++- .../GpDisplayDriverD3D11.cpp | 3 ++- 6 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 GpCommon/GpApplicationName.h 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 3adbcb0f9439782f3c754e2ec3cce5abacff92a4..a7a746ae9fe32c403fff93d63fd9ec65126fa645 100644 GIT binary patch delta 104 zcmbQH`A1{J4PJgnhE#?khJ1!JAkJjSnS78>cd`Xv1%~))e$&bC__kmX55^D!nel+1 KZ?l(x4+{Vto*g;> delta 130 zcmeyPF->#B4PIk+h8%`Wh7^WWh5&|qh9ZU%1_g#BhD3&9pojvHE&xK1iew + 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);