-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
File object #25
File object #25
Conversation
+ Add ChronoVars + Finish FileObject (appart from StringVars)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sometimes I wonder if you read my docs...
OmsiHook/OmsiChronoChangeLabels.cs
Outdated
|
||
internal OmsiChronoChangeLabels(Memory memory, int address) : base(memory, address) { } | ||
|
||
/*public string[] StringVars |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You know how to marshall this...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be corrected now - marshaled correctly
OmsiHook/OmsiFileObject.cs
Outdated
} | ||
/*public string[] StringVars | ||
{ | ||
get => Memory.ReadMemoryObjArray<string>(Address + 0x4c); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Marshall this correctly
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be corrected now - marshalled correcttly
OmsiHook/OmsiObjChronoVars.cs
Outdated
/* | ||
public string[] StringsPnt | ||
{ | ||
get => Memory.ReadMemoryObjArray<string>(Memory.ReadMemory<int>(Address + 0xc)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Marshall this correctly
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be corrected now - marshalled correctly
OmsiHook/OmsiFileObject.cs
Outdated
} | ||
public OmsiFileObjectPathInfo[] Paths | ||
{ | ||
get => Memory.ReadMemoryStructArray<OmsiFileObjectPathInfo>(Address + 0x64); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs extra marshalling
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be corrected now - added extra marshal step
OmsiHook/OmsiStructs.cs
Outdated
} | ||
public struct OmsiFileObjectPathInfoInternal | ||
{ | ||
[OmsiStructArrayPtr(typeof(OmsiPathRule))] public int rules; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs extra marshalling see the docs for OmsiStructArrayPtr
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be corrected now - added extra marshal step
No description provided.