File tree Expand file tree Collapse file tree 1 file changed +11
-9
lines changed
lib/NativeCode/DynamicLibraryLoaderHelper/NativeRender Expand file tree Collapse file tree 1 file changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -1376,16 +1376,18 @@ void eos_create(EOSConfig& eosConfig)
13761376
13771377 auto size = steamApiInterfaceVersionsAsCharArray.size ();
13781378
1379- if (size > (std::numeric_limits< uint32_t >::max)()) {
1380- log_error ( " Size given for SteamApiInterfaceVersionsAsCharArray exceeds the maximum value for uint32_t. " );
1381- throw std::overflow_error (" Size exceeds the maximum value for uint32_t " );
1379+ if (size > EOS_INTEGRATEDPLATFORM_STEAM_MAX_STEAMAPIINTERFACEVERSIONSARRAY_SIZE)
1380+ {
1381+ log_error (" Size given for SteamApiInterfaceVersionsAsCharArray exceeds the maximum value. " );
13821382 }
1383-
1384- // steam_platform needs to have a count of how many bytes the "array" is, stored in SteamApiInterfaceVersionsArrayBytes
1385- // This has some fuzzy behavior; if you set it to 0 or count it up properly, there won't be a logged problem
1386- // if you put a non-zero amount that is insufficient, there will be an unclear logged error message
1387- steam_platform.SteamApiInterfaceVersionsArrayBytes = static_cast <uint32_t >(size);
1388-
1383+ else
1384+ {
1385+ // steam_platform needs to have a count of how many bytes the "array" is, stored in SteamApiInterfaceVersionsArrayBytes
1386+ // This has some fuzzy behavior; if you set it to 0 or count it up properly, there won't be a logged problem
1387+ // if you put a non-zero amount that is insufficient, there will be an unclear logged error message
1388+ steam_platform.SteamApiInterfaceVersionsArrayBytes = size;
1389+ }
1390+
13891391 steam_integrated_platform_option.ApiVersion = EOS_INTEGRATEDPLATFORM_OPTIONS_API_LATEST;
13901392 steam_integrated_platform_option.Type = EOS_IPT_Steam;
13911393 steam_integrated_platform_option.Flags = eos_steam_config.flags ;
You can’t perform that action at this time.
0 commit comments