Skip to content

Commit

Permalink
caps: add fields to AlbumFileId, simplify old invoke
Browse files Browse the repository at this point in the history
  • Loading branch information
SciresM committed Oct 30, 2024
1 parent e004a3f commit 6c93ebc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
4 changes: 3 additions & 1 deletion nx/include/switch/services/caps.h
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,9 @@ typedef struct {
CapsAlbumFileDateTime datetime; ///< \ref CapsAlbumFileDateTime
u8 storage; ///< \ref CapsAlbumStorage
u8 content; ///< \ref CapsAlbumFileContents
u8 pad_x12[0x6]; ///< padding
u8 unknown_12; ///< [19.0.0+]
u8 unknown_13; ///< [19.0.0+]
u8 pad_x14[0x4]; ///< padding
} CapsAlbumFileId;

/// AlbumEntry
Expand Down
8 changes: 2 additions & 6 deletions nx/source/services/capsc.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,8 @@ Result capscGetApplicationIdFromAruid(CapsApplicationId *application_id, u64 aru

if (hosversionAtLeast(19,0,0))
return serviceDispatchInOut(&g_capscSrv, 2013, aruid, *application_id);

u64 old_application_id=0;
Result rc = serviceDispatchInOut(&g_capscSrv, 2013, aruid, old_application_id);
if (R_SUCCEEDED(rc))
*application_id = (CapsApplicationId){ old_application_id, 0, 0 };
return rc;
else
return serviceDispatchInOut(&g_capscSrv, 2013, aruid, application_id->application_id);
}

Result capscCheckApplicationIdRegistered(u64 application_id) {
Expand Down

0 comments on commit 6c93ebc

Please sign in to comment.