-
-
Notifications
You must be signed in to change notification settings - Fork 209
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Handle public key being string on older versions * Update version comment * One more comment
- Loading branch information
Showing
2 changed files
with
102 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,14 @@ | ||
using System; | ||
using System; | ||
|
||
namespace LibCpp2IL; | ||
|
||
public abstract class ReadableClass | ||
{ | ||
protected bool IsAtLeast(float vers) => LibCpp2IlMain.MetadataVersion >= vers; | ||
protected bool IsLessThan(float vers) => LibCpp2IlMain.MetadataVersion < vers; | ||
protected bool IsAtMost(float vers) => LibCpp2IlMain.MetadataVersion <= vers; | ||
protected bool IsNot(float vers) => Math.Abs(LibCpp2IlMain.MetadataVersion - vers) > 0.001f; | ||
protected static bool IsAtLeast(float vers) => LibCpp2IlMain.MetadataVersion >= vers; | ||
protected static bool IsLessThan(float vers) => LibCpp2IlMain.MetadataVersion < vers; | ||
protected static bool IsAtMost(float vers) => LibCpp2IlMain.MetadataVersion <= vers; | ||
protected static bool IsNot(float vers) => Math.Abs(LibCpp2IlMain.MetadataVersion - vers) > 0.001f; | ||
protected static bool Is(float vers) => Math.Abs(LibCpp2IlMain.MetadataVersion - vers) < 0.001f; | ||
|
||
public abstract void Read(ClassReadingBinaryReader reader); | ||
} |