add FSGConnectJNI::Initialize() and FSGCoreJNI::Initialize() return codes to Android logs for detailed debugging purposes through adb logcat

This commit is contained in:
Mamadou Babaei
2025-02-14 12:09:13 +01:00
parent 8eed7f3b6c
commit c594f1ec24
2 changed files with 4 additions and 0 deletions
+1
View File
@@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added ### Added
- Added an ePub version of the SenseGlove Unreal Engine Handbook. - Added an ePub version of the SenseGlove Unreal Engine Handbook.
- Added `FSGConnectJNI::Initialize()` and `FSGCoreJNI::Initialize()` return codes to Android logs for detailed debugging purposes through `adb logcat`.
### Fixed ### Fixed
@@ -76,6 +76,9 @@ void FSenseGloveAndroidModule::OnPostEngineInit() const
const int32 R1 = FSGConnectJNI::Initialize(); const int32 R1 = FSGConnectJNI::Initialize();
const int32 R2 = FSGCoreJNI::Initialize(); const int32 R2 = FSGCoreJNI::Initialize();
SGLOG("FSGConnectJNI::Initialize() return code", R1);
SGLOG("FSGCoreJNI::Initialize() return code", R2);
ensureAlwaysMsgf(R1 == 0, ensureAlwaysMsgf(R1 == 0,
TEXT( TEXT(
"Failed to initialize the SGConnect JNI bridge to SGConnect for Android! Status Code: %d" "Failed to initialize the SGConnect JNI bridge to SGConnect for Android! Status Code: %d"