Skip to content

Commit

Permalink
nn_idb: Fix copy headers, fix nn::idb::IDBReader::Initialize (#395)
Browse files Browse the repository at this point in the history
* nn_idb: Fix copy headers, fix nn::idb::IDBReader::Initialize

* Update libraries/nn_idb/src/IDBReader.cpp

Co-authored-by: GaryOderNichts <12049776+GaryOderNichts@users.noreply.github.com>

---------

Co-authored-by: GaryOderNichts <12049776+GaryOderNichts@users.noreply.github.com>
  • Loading branch information
Maschell and GaryOderNichts authored Aug 4, 2024
1 parent 9a32ef1 commit 09e3a24
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ dist-bin: all
@tar --exclude=*~ -cjf wut-$(VERSION).tar.bz2 \
include lib share \
-C libraries/libwhb include \
-C ../nn_idb include \
-C ../libgfd include \
-C ../libirc include

Expand Down
3 changes: 1 addition & 2 deletions libraries/nn_idb/src/IDBReader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,8 @@ namespace nn::idb {

bool IDBReader::Initialize() {
uint64_t menuTid = _SYSGetSystemApplicationTitleId(SYSTEM_APP_ID_WII_U_MENU);
auto *menuTidPtr = (uint32_t *) menuTid;
char path[90];
snprintf(path, sizeof(path), "fs:/vol/storage_mlc01/usr/save/%08X/%08X/user/common/BaristaIconDataBase.dat", menuTidPtr[0], menuTidPtr[1]);
snprintf(path, sizeof(path), "fs:/vol/storage_mlc01/usr/save/%08X/%08X/user/common/BaristaIconDataBase.dat", (uint32_t) (menuTid >> 32), (uint32_t) (menuTid & 0xffffffff));

return Initialize(path);
}
Expand Down

0 comments on commit 09e3a24

Please sign in to comment.