libnx/nx/source/applets/album_la.c

32 lines
819 B
C

#include <string.h>
#include "types.h"
#include "result.h"
#include "services/applet.h"
#include "applets/libapplet.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_photoViewer, &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);
}