| 313 | } |
| 314 | |
| 315 | inline LaunchMode GetLaunchMode() { |
| 316 | switch(appletGetAppletType()) { |
| 317 | case AppletType_SystemApplication: |
| 318 | case AppletType_Application: { |
| 319 | return LaunchMode::Application; |
| 320 | } |
| 321 | case AppletType_LibraryApplet: { |
| 322 | // For us, any other kinds of applets (System/OverlayApplet) are intentionally not supported |
| 323 | return LaunchMode::Applet; |
| 324 | } |
| 325 | default: { |
| 326 | return LaunchMode::Unknown; |
| 327 | } |
| 328 | } |
| 329 | } |
| 330 | |
| 331 | inline u64 GetCurrentApplicationId() { |
| 332 | u64 app_id = 0; |
no outgoing calls
no test coverage detected