Commit 2d41859
committed
Fix startup crash by handling native library load failure
Wraps the `Java.Lang.JavaSystem.LoadLibrary("osu.Android.Native")` call in `OsuGameActivity` with a try-catch block.
This prevents the application from crashing on startup if the native library cannot be loaded (e.g., due to missing dependencies, architecture mismatch, or device incompatibility).
Since the native library is currently only used for optional features (Vulkan, Oboe) which are disabled by default, this allows the game to function normally without them.
Logs the failure to Android Logcat for debugging purposes.1 parent 9c7d4d1 commit 2d41859
2 files changed
Lines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
148 | | - | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
149 | 156 | | |
150 | 157 | | |
151 | 158 | | |
| |||
0 commit comments