Hey all, i'm having troubles passing through a struct as a function parameter.
Some example code:
pub var fileHandle: rsdk.std.fs.File = undefined;
};```
```const fileInfo: *reader.FileInfo = undefined;
reader.loadFile(&fileInfo);```
```pub fn loadFile(fileInfo: *FileInfo) i32 {
fileInfo.*.fileHandle = std.fs.cwd().openFile("Sfx/Music.ogg", .{}) catch {
// TODO: Logging
return 0;
};```
When I do this, I get this error: `error: no field named 'fileHandle' in struct 'Reader.FileInfo'`. Am I passing through the struct wrong?