Skip to content

Commit a9dabaa

Browse files
committed
prof easter
1 parent 3fbf18d commit a9dabaa

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-0
lines changed

include/nbl/config/BuildConfigOptions.h.in

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,17 @@
7070
// TODO: This has to disapppear from the main header and go to the OptiX extension header + config
7171
#cmakedefine OPTIX_INCLUDE_DIR "@OPTIX_INCLUDE_DIR@"
7272

73+
#if defined(_NBL_DEBUG) || defined(_NBL_RELWITHDEBINFO)
74+
#define _NBL_EG_PRFNT_LEVEL @_NBL_EG_PRFNT_LEVEL@
75+
#if _NBL_EG_PRFNT_LEVEL == 1
76+
#define _NBL_EG_OP_LNK(_x) ShellExecuteA(NULL, "open", "https://www.youtube.com/watch?v=4HXeL_yimMs", NULL, NULL, SW_SHOWNORMAL)
77+
#elif _NBL_EG_PRFNT_LEVEL == 2
78+
#define _NBL_EG_OP_LNK(_x) ShellExecuteA(NULL, "open", "https://www.youtube.com/watch?v=4HXeL_yimMs", NULL, NULL, SW_SHOWNORMAL)
79+
#elif _NBL_EG_PRFNT_LEVEL >= 3
80+
#define _NBL_EG_OP_LNK(_x) ShellExecuteA(NULL, "open", "https://www.youtube.com/watch?v=4HXeL_yimMs", NULL, NULL, SW_SHOWNORMAL)
81+
#endif
82+
#endif
83+
7384
// DDL exports
7485
#cmakedefine _NBL_SHARED_BUILD_
7586
#ifdef _NBL_SHARED_BUILD_

include/nbl/video/debug/CVulkanDebugCallback.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@
66
#define VK_NO_PROTOTYPES
77
#include <vulkan/vulkan.h>
88

9+
#if defined(_NBL_PLATFORM_WINDOWS_) && defined(_NBL_EG_OP_LNK)
10+
#include <windows.h>
11+
#include <shellapi.h>
12+
#endif
13+
914
namespace nbl::video
1015
{
1116

@@ -36,6 +41,10 @@ class NBL_API CVulkanDebugCallback : public IDebugCallback
3641
break;
3742
case VK_DEBUG_UTILS_MESSAGE_SEVERITY_ERROR_BIT_EXT:
3843
level |= system::ILogger::ELL_ERROR;
44+
#if defined(_NBL_PLATFORM_WINDOWS_) && defined(_NBL_EG_OP_LNK)
45+
_NBL_EG_OP_LNK(level);
46+
_NBL_DEBUG_BREAK_IF(true);
47+
#endif
3948
break;
4049
default:
4150
assert(!"Don't know what to do with this value!");

src/nbl/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ option(_NBL_COMPILE_WITH_GLI_LOADER_ "Compile with GLI Loader" ON)
122122
option(_NBL_COMPILE_WITH_GLI_WRITER_ "Compile with GLI Writer" ON)
123123
option(_NBL_COMPILE_WITH_GLTF_LOADER_ "Compile with GLTF Loader" ON)
124124
option(_NBL_COMPILE_WITH_GLTF_WRITER_ "Compile with GLTF Writer" ON)
125+
set(_NBL_EG_PRFNT_LEVEL 0 CACHE STRING "EasterEgg Profanity Level")
125126

126127
if(NBL_BUILD_ANDROID)
127128
set(_NBL_COMPILE_WITH_BAW_LOADER_ OFF CACHE BOOL "Off for Android purposes at the moment" FORCE) # TODO - remove when BAW-v4 is done

0 commit comments

Comments
 (0)