imitate win resources of gameoverlayrenderer + add resources to networkingsocketslib

This commit is contained in:
otavepto 2024-04-09 10:38:56 +02:00
parent c48b5c4a37
commit 775b089e80
7 changed files with 175 additions and 5 deletions

View File

@ -1,10 +1,11 @@
* properly implement `Steam_Apps::GetAvailableGameLanguages()` * properly implement `Steam_Apps::GetAvailableGameLanguages()`
* ensure current emu language is inside `supported_languages` list * ensure current emu language is inside `supported_languages` list
* run the background thread for callbacks earlier inside `Steam_Client::ConnectToGlobalUser()` * run the callbacks background thread earlier inside `Steam_Client::ConnectToGlobalUser()`
since some games don't call `SteamAPI_RunCallbacks()` or `SteamAPI_ManualDispatch_RunFrame()` or `Steam_BGetCallback()` since some games don't call `SteamAPI_RunCallbacks()` or `SteamAPI_ManualDispatch_RunFrame()` or `Steam_BGetCallback()`
hence all run_callbacks() will never run, also networking callbacks won't run hence all run_callbacks() will never run, also networking callbacks won't run
* decrease the periodicity of the background thread to `~100ms`, also prevent it from running if the callbacks are already running * decrease the periodicity of the background thread to `~100ms`, also prevent it from running if the callbacks are already running
* output function name in debug log * output function name in debug log
* imitate Windows resources of gameoverlayrenderer + add resources to networkingsocketslib
--- ---

View File

@ -331,6 +331,12 @@ call :build_rsrc "%win_resources_src_dir%\launcher\32\resources.rc" "%win_resour
set /a last_code=1 set /a last_code=1
goto :end_script goto :end_script
) )
call :build_rsrc "%win_resources_src_dir%\game_overlay_renderer\32\resources.rc" "%win_resources_out_dir%\rsrc-gameoverlay-32.res" || (
endlocal
call :err_msg "Resource compiler failed - 32"
set /a last_code=1
goto :end_script
)
echo: & echo: echo: & echo:
if %BUILD_LIB32% equ 1 ( if %BUILD_LIB32% equ 1 (
@ -456,6 +462,12 @@ call :build_rsrc "%win_resources_src_dir%\launcher\64\resources.rc" "%win_resour
set /a last_code=1 set /a last_code=1
goto :end_script goto :end_script
) )
call :build_rsrc "%win_resources_src_dir%\game_overlay_renderer\64\resources.rc" "%win_resources_out_dir%\rsrc-gameoverlay-64.res" || (
endlocal
call :err_msg "Resource compiler failed - 64"
set /a last_code=1
goto :end_script
)
echo: & echo: echo: & echo:
if %BUILD_LIB64% equ 1 ( if %BUILD_LIB64% equ 1 (
@ -666,7 +678,7 @@ endlocal & exit /b %_exit%
:compile_networking_sockets_lib_32 :compile_networking_sockets_lib_32
setlocal setlocal
echo // building library steamnetworkingsockets.dll - 32 echo // building library steamnetworkingsockets.dll - 32
set src_files="networking_sockets_lib\steamnetworkingsockets.cpp" set src_files="%win_resources_out_dir%\rsrc-client-32.res" "networking_sockets_lib\steamnetworkingsockets.cpp"
call :build_for 1 0 "%build_root_dir%\networking_sockets_lib\steamnetworkingsockets.dll" src_files call :build_for 1 0 "%build_root_dir%\networking_sockets_lib\steamnetworkingsockets.dll" src_files
set /a _exit=%errorlevel% set /a _exit=%errorlevel%
if %_exit% equ 0 ( if %_exit% equ 0 (
@ -678,7 +690,7 @@ endlocal & exit /b %_exit%
:compile_gameoverlay_lib_32 :compile_gameoverlay_lib_32
setlocal setlocal
echo // building experimental library GameOverlayRenderer.dll - 32 echo // building experimental library GameOverlayRenderer.dll - 32
set src_files="game_overlay_renderer_lib\game_overlay_renderer_lib.cpp" set src_files="%win_resources_out_dir%\rsrc-gameoverlay-32.res" "game_overlay_renderer_lib\game_overlay_renderer_lib.cpp"
set extra_inc_dirs=/I"game_overlay_renderer_lib" set extra_inc_dirs=/I"game_overlay_renderer_lib"
call :build_for 1 0 "%steamclient_dir%\GameOverlayRenderer.dll" src_files extra_inc_dirs call :build_for 1 0 "%steamclient_dir%\GameOverlayRenderer.dll" src_files extra_inc_dirs
set /a _exit=%errorlevel% set /a _exit=%errorlevel%
@ -773,7 +785,7 @@ endlocal & exit /b %_exit%
:compile_networking_sockets_lib_64 :compile_networking_sockets_lib_64
setlocal setlocal
echo // building library steamnetworkingsockets64.dll - 64 echo // building library steamnetworkingsockets64.dll - 64
set src_files="networking_sockets_lib\steamnetworkingsockets.cpp" set src_files="%win_resources_out_dir%\rsrc-client-64.res" "networking_sockets_lib\steamnetworkingsockets.cpp"
call :build_for 0 0 "%build_root_dir%\networking_sockets_lib\steamnetworkingsockets64.dll" src_files call :build_for 0 0 "%build_root_dir%\networking_sockets_lib\steamnetworkingsockets64.dll" src_files
set /a _exit=%errorlevel% set /a _exit=%errorlevel%
if %_exit% equ 0 ( if %_exit% equ 0 (
@ -785,7 +797,7 @@ endlocal & exit /b %_exit%
:compile_gameoverlay_lib_64 :compile_gameoverlay_lib_64
setlocal setlocal
echo // building experimental library GameOverlayRenderer64.dll - 64 echo // building experimental library GameOverlayRenderer64.dll - 64
set src_files="game_overlay_renderer_lib\game_overlay_renderer_lib.cpp" set src_files="%win_resources_out_dir%\rsrc-gameoverlay-64.res" "game_overlay_renderer_lib\game_overlay_renderer_lib.cpp"
set extra_inc_dirs=/I"game_overlay_renderer_lib" set extra_inc_dirs=/I"game_overlay_renderer_lib"
call :build_for 0 0 "%steamclient_dir%\GameOverlayRenderer64.dll" src_files extra_inc_dirs call :build_for 0 0 "%steamclient_dir%\GameOverlayRenderer64.dll" src_files extra_inc_dirs
set /a _exit=%errorlevel% set /a _exit=%errorlevel%

View File

@ -13,5 +13,6 @@ This directory contains additional resources used during build.
* [api](./win/api/): contains an immitation of the resources found in `steam_api(64).dll` * [api](./win/api/): contains an immitation of the resources found in `steam_api(64).dll`
* [client](./win/client/): contains an immitation of the resources found in `steamclient(64).dll` * [client](./win/client/): contains an immitation of the resources found in `steamclient(64).dll`
* [launcher](./win/launcher/): contains an immitation of the resources found in `steam.exe` * [launcher](./win/launcher/): contains an immitation of the resources found in `steam.exe`
* [game_overlay_renderer](./win/game_overlay_renderer/): contains an immitation of the resources found in `GameOverlayRenderer(64).dll`
* [file_dos_stub](./win/file_dos_stub/): contains an immitation of how the DOS stub is manipulated after build * [file_dos_stub](./win/file_dos_stub/): contains an immitation of how the DOS stub is manipulated after build

View File

@ -0,0 +1,77 @@
// ===================================================================================== 0
LANGUAGE 0, 0
SOURCE_CONTROL_ID SCID "../SOURCE_CONTROL_ID.txt"
1 VERSIONINFO
FILEVERSION 8,74,80,95
PRODUCTVERSION 1,0,0,1
FILEFLAGSMASK 0x17
FILEFLAGS 0x0
FILEOS 0x00000004L // VOS__WINDOWS32
FILETYPE 0x2L // VFT_DLL
FILESUBTYPE 0x0L // VFT2_UNKNOWN
{
BLOCK "StringFileInfo"
{
BLOCK "040904b0" // language code = U.S. English, character-set identifier = Unicode
{
VALUE "LegalCopyright", "Copyright (C) 2007"
VALUE "InternalName", "GameOverlayRenderer (win32)"
VALUE "FileVersion", "08.74.80.95"
VALUE "CompanyName", "GSE"
VALUE "ProductVersion", "01.00.00.01"
VALUE "FileDescription", "GSE Overlay Renderer"
VALUE "Source Control ID", "8748095"
VALUE "OriginalFilename", "GameOverlayRenderer.dll"
VALUE "ProductName", "GSE Overlay Renderer"
}
}
BLOCK "VarFileInfo"
{
VALUE "Translation", 0x0409 0x04B0 // English language (0x409) in the Windows ANSI codepage (1252)
}
}
// ===================================================================================== 1033
LANGUAGE 0x09, 0x01
1 VERSIONINFO
FILEVERSION 1,0,0,1
PRODUCTVERSION 1,0,0,1
FILEFLAGSMASK 0x17
FILEFLAGS 0x0
FILEOS 0x00000004L // VOS__WINDOWS32
FILETYPE 0x2L // VFT_DLL
FILESUBTYPE 0x0L // VFT2_UNKNOWN
{
BLOCK "StringFileInfo"
{
BLOCK "040904b0" // language code = U.S. English, character-set identifier = Unicode
{
VALUE "CompanyName", "GSE"
VALUE "FileDescription", "GSE Overlay Renderer"
VALUE "FileVersion", "1, 0, 0, 1"
VALUE "InternalName", "GameOverlayRenderer"
VALUE "LegalCopyright", "Copyright (C) 2007"
VALUE "OriginalFilename", "GameOverlayRenderer.dll"
VALUE "ProductName", "GSE Overlay Renderer"
VALUE "ProductVersion", "1, 0, 0, 1"
}
}
BLOCK "VarFileInfo"
{
VALUE "Translation", 0x0409 0x04B0 // English language (0x409) in the Windows ANSI codepage (1252)
}
}
// ===================================================================================== 4147
LANGUAGE 0x33, 0x04
1 WEVT_TEMPLATE "../WEVT_TEMPLATE1_1.bin"

View File

@ -0,0 +1,77 @@
// ===================================================================================== 0
LANGUAGE 0, 0
SOURCE_CONTROL_ID SCID "../SOURCE_CONTROL_ID.txt"
1 VERSIONINFO
FILEVERSION 8,74,80,95
PRODUCTVERSION 1,0,0,1
FILEFLAGSMASK 0x17
FILEFLAGS 0x0
FILEOS 0x00000004L // VOS__WINDOWS32
FILETYPE 0x2L // VFT_DLL
FILESUBTYPE 0x0L // VFT2_UNKNOWN
{
BLOCK "StringFileInfo"
{
BLOCK "040904b0" // language code = U.S. English, character-set identifier = Unicode
{
VALUE "LegalCopyright", "Copyright (C) 2007"
VALUE "InternalName", "GameOverlayRenderer (win64)"
VALUE "FileVersion", "08.74.80.95"
VALUE "CompanyName", "GSE"
VALUE "ProductVersion", "01.00.00.01"
VALUE "FileDescription", "GSE Overlay Renderer"
VALUE "Source Control ID", "8748095"
VALUE "OriginalFilename", "GameOverlayRenderer.dll"
VALUE "ProductName", "GSE Overlay Renderer"
}
}
BLOCK "VarFileInfo"
{
VALUE "Translation", 0x0409 0x04B0 // English language (0x409) in the Windows ANSI codepage (1252)
}
}
// ===================================================================================== 1033
LANGUAGE 0x09, 0x01
1 VERSIONINFO
FILEVERSION 1,0,0,1
PRODUCTVERSION 1,0,0,1
FILEFLAGSMASK 0x17
FILEFLAGS 0x0
FILEOS 0x00000004L // VOS__WINDOWS32
FILETYPE 0x2L // VFT_DLL
FILESUBTYPE 0x0L // VFT2_UNKNOWN
{
BLOCK "StringFileInfo"
{
BLOCK "040904b0" // language code = U.S. English, character-set identifier = Unicode
{
VALUE "CompanyName", "GSE"
VALUE "FileDescription", "GSE Overlay Renderer"
VALUE "FileVersion", "1, 0, 0, 1"
VALUE "InternalName", "GameOverlayRenderer"
VALUE "LegalCopyright", "Copyright (C) 2007"
VALUE "OriginalFilename", "GameOverlayRenderer.dll"
VALUE "ProductName", "GSE Overlay Renderer"
VALUE "ProductVersion", "1, 0, 0, 1"
}
}
BLOCK "VarFileInfo"
{
VALUE "Translation", 0x0409 0x04B0 // English language (0x409) in the Windows ANSI codepage (1252)
}
}
// ===================================================================================== 4147
LANGUAGE 0x33, 0x04
1 WEVT_TEMPLATE "../WEVT_TEMPLATE1_1.bin"

View File

@ -0,0 +1 @@
8748095

View File

@ -0,0 +1 @@
GSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSEGSE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