Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions include/nn/account.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,12 @@

namespace nn {
namespace account {
typedef char Nickname[0x21];
typedef u64 NetworkServiceAccountId;
struct Nickname {
char m_Buffer[0x21];
};
struct NetworkServiceAccountId {
u64 m_Id;
};

class AsyncContext;

Expand Down Expand Up @@ -40,13 +44,15 @@ Result LoadNetworkServiceAccountIdTokenCache(u64*, char*, u64, UserHandle const&

Result GetLastOpenedUser(Uid*);
Result GetNickname(Nickname* nickname, Uid const& userID);
Result GetNetworkServiceAccountId(NetworkServiceAccountId*, const UserHandle&);

Result GetUserId(Uid* uid, const UserHandle& handle);
Result OpenPreselectedUser(UserHandle* handle);

class AsyncContext {
public:
AsyncContext();
~AsyncContext();

Result HasDone(bool*);
Result GetResult();
Expand Down
1 change: 1 addition & 0 deletions include/nn/audio.h
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ struct VoiceType {
};

struct DeviceSinkType {
struct DownMixParameter;
u64* _0;
};

Expand Down
9 changes: 7 additions & 2 deletions include/nn/friends.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,12 @@

namespace nn {
namespace friends {
typedef char Url[0xA0];
struct Url {
char m_Buffer[0xA0];
};
struct ImageSize {
s32 m_Size;
};

class AsyncContext;
class Profile;
Expand All @@ -27,7 +32,7 @@ class Profile {
nn::account::NetworkServiceAccountId GetAccountId() const;
nn::account::Nickname& GetNickname() const;
bool IsValid() const;
Result GetProfileImageUrl(nn::friends::Url*, s32);
Result GetProfileImageUrl(nn::friends::Url*, ImageSize) const;
};

class AsyncContext {
Expand Down
1 change: 1 addition & 0 deletions include/nn/fs/fs_rom.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#pragma once

#include <nn/fs/fs_types.h>
#include <nn/nn.h>

namespace nn::fs {

Expand Down
5 changes: 1 addition & 4 deletions include/nn/fs/fs_save.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@

#include <nn/account.h>
#include <nn/fs/fs_types.h>

namespace nn {
typedef u64 ApplicationId;
};
#include <nn/nn.h>

namespace nn::fs {

Expand Down
8 changes: 2 additions & 6 deletions include/nn/fs/fs_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@

#include <nn/types.h>

namespace nn {
typedef u64 ApplicationId;

namespace fs {
namespace nn::fs {
using namespace ams::fs; // for errors

typedef u64 UserId;
Expand Down Expand Up @@ -78,5 +75,4 @@ struct WriteOption {
return op;
}
};
} // namespace fs
} // namespace nn
} // namespace nn::fs
2 changes: 1 addition & 1 deletion include/nn/image.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class JpegDecoder {
nn::image::JpegStatus Analyze();
nn::image::Dimension GetAnalyzedDimension() const;
s64 GetAnalyzedWorkBufferSize() const;
JpegStatus Decode(void* out, s64, s32 alignment, void*, s64);
JpegStatus Decode(void* out, u64, s32 alignment, void*, u64);

nn::image::ProcessStage mProcessStage; // _8
void* mData; // _C
Expand Down
4 changes: 3 additions & 1 deletion include/nn/nfp/nfp.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ struct SystemEventType;

namespace nn::nfp {

using DeviceHandle = u64;
struct DeviceHandle {
u64 m_Id;
};

enum State : u32;
enum DeviceState : u32;
Expand Down
6 changes: 4 additions & 2 deletions include/nn/nn.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@
#include <nn/types.h>

namespace nn {
typedef u64 ApplicationId;
struct ApplicationId {
u64 m_Id;
};
} // namespace nn

#ifdef __cplusplus
extern "C" {
Expand All @@ -30,4 +32,4 @@ void __nnDetailNintendoSdkNsoFile_0();

#ifdef __cplusplus
}
#endif
#endif
Loading