mirror of
https://github.com/switchbrew/libnx.git
synced 2025-06-21 20:42:44 +02:00
29 lines
765 B
C
29 lines
765 B
C
#include <string.h>
|
|
#include "libapplet_internal.h"
|
|
#include "applets/album_la.h"
|
|
|
|
static Result _albumLaShow(u8 arg, bool playStartupSound) {
|
|
Result rc=0;
|
|
LibAppletArgs commonargs;
|
|
|
|
libappletArgsCreate(&commonargs, 0x10000);
|
|
libappletArgsSetPlayStartupSound(&commonargs, playStartupSound);
|
|
|
|
rc = libappletLaunch(AppletId_LibraryAppletPhotoViewer, &commonargs, &arg, sizeof(arg), NULL, 0, NULL);
|
|
|
|
return rc;
|
|
}
|
|
|
|
Result albumLaShowAlbumFiles(void) {
|
|
return _albumLaShow(AlbumLaArg_ShowAlbumFiles, false);
|
|
}
|
|
|
|
Result albumLaShowAllAlbumFiles(void) {
|
|
return _albumLaShow(AlbumLaArg_ShowAllAlbumFiles, false);
|
|
}
|
|
|
|
Result albumLaShowAllAlbumFilesForHomeMenu(void) {
|
|
return _albumLaShow(AlbumLaArg_ShowAllAlbumFilesForHomeMenu, true);
|
|
}
|
|
|