Skip to content
This repository has been archived by the owner on May 6, 2024. It is now read-only.

Prepare For Release #1

Merged
merged 22 commits into from
Jul 18, 2023
Merged

Prepare For Release #1

merged 22 commits into from
Jul 18, 2023

Conversation

nlogozzo
Copy link
Member

No description provided.

@fsobolev Code looks good overall, just some minor syntax things I changed.

For MPVEvent, I made all the Get() methods into actual get properties to follow C# style

Please test and make sure nothing broke :)
@fsobolev For both internal and non-internal make sure everything is full documented (there are some properties and classes missing docs)

Also for methods that throw exceptions, please add <exception></exception> tag to describe when the exception will be thrown. I added the tag to some methods, which you can look at for an example.
@nlogozzo nlogozzo marked this pull request as ready for review July 18, 2023 13:47
@nlogozzo nlogozzo requested a review from fsobolev July 18, 2023 13:47
@nlogozzo nlogozzo requested review from fsobolev and removed request for fsobolev July 18, 2023 13:51
@nlogozzo nlogozzo requested review from fsobolev and removed request for fsobolev July 18, 2023 13:57
@fsobolev fsobolev self-requested a review July 18, 2023 17:27
Copy link
Member

@fsobolev fsobolev left a comment

Choose a reason for hiding this comment

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

public object? GetData()
    {
        return Format switch
        {
            MPVFormat.String or MPVFormat.OSDString => Marshal.PtrToStringUTF8(_data),
            MPVFormat.Flag => Marshal.ReadInt32(_data) == 1,
            MPVFormat.Int64 => Marshal.ReadInt64(_data),
            MPVFormat.Double => 0.0,
            MPVFormat.Node => Marshal.PtrToStructure<MPVNode>(_data),
            _ => null
        };
    }

just noticed I forgot to make conversion to double 😂 Gonna fix this

@nlogozzo nlogozzo requested a review from fsobolev July 18, 2023 21:45
@nlogozzo nlogozzo requested review from fsobolev and removed request for fsobolev July 18, 2023 21:46
@nlogozzo nlogozzo merged commit dac7996 into main Jul 18, 2023
@nlogozzo nlogozzo deleted the check branch July 18, 2023 21:48
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants