@@ -64,9 +64,9 @@ namespace {
6464 bool on_steamclient_loaded (const HMODULE steamclient_handle) {
6565 auto * const steamapi_handle = original_steamapi_handle
6666 ? original_steamapi_handle
67- : kb::module::get_library_handle (TEXT (STEAMAPI_DLL ));
67+ : kb::module::get_library_handle (TEXT (STEAM_API_MODULE ));
6868 if (!steamapi_handle) {
69- LOG_ERROR (" {} -> {} is not loaded" , __func__, STEAMAPI_DLL );
69+ LOG_ERROR (" {} -> {} is not loaded" , __func__, STEAM_API_MODULE );
7070 return true ;
7171 }
7272
@@ -75,7 +75,7 @@ namespace {
7575 const auto steamclient_versions = find_steamclient_versions (steamapi_handle);
7676 for (const auto & steamclient_version : steamclient_versions) {
7777 if (CreateInterface$(steamclient_version.c_str (), nullptr )) {
78- // TODO: This is not true when running under Proton.
78+ // TODO: This is not true when running under Proton or native Linux .
7979 // Even before initialization, an interface will be returned,
8080 // but GetISteamGenericInterface will still fail.
8181 LOG_WARN (" '{}' was already initialized. SmokeAPI might not work as expected." , steamclient_version);
@@ -119,20 +119,20 @@ namespace smoke_api {
119119 // We need to hook functions in either mode
120120 kb::hook::init (true );
121121
122- if (kb::hook::is_hook_mode (module_handle, STEAMAPI_DLL )) {
122+ if (kb::hook::is_hook_mode (module_handle, STEAM_API_MODULE )) {
123123 LOG_INFO (" Detected hook mode" );
124124
125125 start_dll_listener ();
126126 } else {
127127 LOG_INFO (" Detected proxy mode" );
128128
129+ start_dll_listener ();
130+
129131 const auto self_path = kb::paths::get_self_dir ();
130132 original_steamapi_handle = kb::loader::load_original_library (
131133 self_path,
132- STEAMAPI_DLL
134+ STEAM_API_MODULE
133135 );
134-
135- start_dll_listener ();
136136 }
137137
138138 LOG_INFO (" Initialization complete" );
0 commit comments