From b04e057b5dbe7a379929e396254f9a418f3047c3 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Fri, 19 Jul 2019 19:39:43 +0200 Subject: [PATCH] Revert "(Win32/Vulkan) Dehardcode more program name strings" This reverts commit 5cefcb83273c145e8aafc9b7b6988ffbb6071289. --- gfx/common/vulkan_common.c | 4 ++-- gfx/common/win32_common.c | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/gfx/common/vulkan_common.c b/gfx/common/vulkan_common.c index b63a69615d..2b69f989fd 100644 --- a/gfx/common/vulkan_common.c +++ b/gfx/common/vulkan_common.c @@ -2034,9 +2034,9 @@ bool vulkan_context_init(gfx_ctx_vulkan_data_t *vk, use_instance_ext = vulkan_find_instance_extensions(instance_extensions, ext_count); - app.pApplicationName = msg_hash_to_str(MSG_PROGRAM); + app.pApplicationName = "RetroArch"; app.applicationVersion = 0; - app.pEngineName = msg_hash_to_str(MSG_PROGRAM); + app.pEngineName = "RetroArch"; app.engineVersion = 0; app.apiVersion = VK_MAKE_VERSION(1, 0, 18); diff --git a/gfx/common/win32_common.c b/gfx/common/win32_common.c index a0f6c408b7..3fffc9e97e 100644 --- a/gfx/common/win32_common.c +++ b/gfx/common/win32_common.c @@ -1000,8 +1000,7 @@ bool win32_window_create(void *data, unsigned style, user_height= g_win32_pos_height; } main_window.hwnd = CreateWindowEx(0, - msg_hash_to_str(MSG_PROGRAM), - msg_hash_to_str(MSG_PROGRAM), + "RetroArch", "RetroArch", style, fullscreen ? mon_rect->left : g_win32_pos_x, fullscreen ? mon_rect->top : g_win32_pos_y, @@ -1442,7 +1441,7 @@ void win32_window_reset(void) void win32_destroy_window(void) { #ifndef _XBOX - UnregisterClass(msg_hash_to_str(MSG_PROGRAM), GetModuleHandle(NULL)); + UnregisterClass("RetroArch", GetModuleHandle(NULL)); #if defined(_WIN32_WINNT) && _WIN32_WINNT >= 0x500 /* 2K */ UnregisterDeviceNotification(notification_handler); #endif