UISDK: create SDK plugin for RUI

Slightly different plugin than PluginSDK; this loads using the RPak dll loading tech.
This commit is contained in:
Kawe Mazidjatari committed 2025-06-19 12:11:13 +02:00
1 parent 0a04bbe23a
commit a445ad2ad7
3 files changed
+57

No files matched your search

+1
View File
@@ -88,6 +88,7 @@ add_subdirectory( loader )
set( FOLDER_CONTEXT "Plugins" )
add_subdirectory( pluginsdk )
add_subdirectory( uisdk )
set( FOLDER_CONTEXT "Game" )
add_subdirectory( vscript )
+30
View File
@@ -0,0 +1,30 @@
cmake_minimum_required( VERSION 3.16 )
add_module( "shared_lib" "ui_sdk" "vpc" ${FOLDER_CONTEXT} TRUE TRUE )
start_sources()
add_sources( SOURCE_GROUP "Private"
"ui_sdk.cpp"
)
end_sources( "${BUILD_OUTPUT_DIR}/paks/Win64/" )
target_link_libraries( ${PROJECT_NAME} PRIVATE
"advapi32.lib"
"bcrypt.lib"
"crypt32.lib"
"dbghelp.lib"
"wldap32.lib"
"ws2_32.lib"
"Rpcrt4.lib"
"vpc"
"tier0"
"tier1"
"libdetours"
)
target_link_options( ${PROJECT_NAME} PRIVATE
"/STACK:8000000" # Match game executable stack reserve size
)
+26
View File
@@ -0,0 +1,26 @@
//===========================================================================//
//
// Purpose: Respawn UI development SDK
//
//===========================================================================//
//-----------------------------------------------------------------------------
// Purpose: APIENTRY
//-----------------------------------------------------------------------------
BOOL APIENTRY DllMain(HMODULE hModule, DWORD dwReason, LPVOID lpReserved)
{
switch (dwReason)
{
case DLL_PROCESS_ATTACH:
{
break;
}
case DLL_PROCESS_DETACH:
{
break;
}
}
return TRUE;
}