switchbrew / libnx

Library for Switch Homebrew

Home Page:https://switchbrew.github.io/libnx/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

fsFsCreateFile IPC parameters are incorrect

Thealexbarney opened this issue · comments

The IPC structure for CreateFile is incorrect based on the SDK

Current:

struct {
    u64 magic;
    u64 cmd_id;
    u64 zero;
    u64 size;
    u32 flags;
} *raw;

Correct (Assuming standard alignment):

struct {
    u64 magic;
    u64 cmd_id;
    u64 zero;
    u32 flags;
    u64 size;
} *raw;

Is this from a game sdk-nso?

Yeah. Specifically SSBU's

PR it?