Skip to content

Navigation, priority, control, html,comment update#267

Open
pattontim wants to merge 4 commits intosupermemo:developfrom
pattontim:navigation
Open

Navigation, priority, control, html,comment update#267
pattontim wants to merge 4 commits intosupermemo:developfrom
pattontim:navigation

Conversation

@pattontim
Copy link
Copy Markdown

@pattontim pattontim commented Dec 18, 2022

Add comment registry hooks and some hooks and methods associated with navigation, priority and HTML.

Co-authored-by: kpence kpence@tamu.edu

Co-authored-by: kpence <kpence@tamu.edu>
@pattontim
Copy link
Copy Markdown
Author

Pending comments on the more dubious changes

Copy link
Copy Markdown
Author

@pattontim pattontim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

First observations

NativeMethod.Database_AppendComment.ExecuteOnMainThread(
databasePtr,
elementId,
new DelphiUTF16String(comment));
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is using Natives like this to insert data safe?

[FieldOffset(60)]
/* 0x3C */ public byte unknownbyte18;
/* 0x36 */ public byte unknownbyte16;
[FieldOffset(55)]
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

any extensions access these?

{
return Core.Natives.Contents.FindText(
ContentsPtr.Read<IntPtr>(),
"test");
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hard to implement? It's not 100% necessary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant