MCPcopy Create free account
hub / github.com/XorTroll/Goldleaf / GetLaunchMode

Function GetLaunchMode

Goldleaf/include/base.hpp:315–329  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

313}
314
315inline 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
331inline u64 GetCurrentApplicationId() {
332 u64 app_id = 0;

Callers 5

LockExitFunction · 0.85
UnlockExitFunction · 0.85
LoadMethod · 0.85
StartDumpMethod · 0.85
webBrowser_DefaultKeyMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected