◆ GetModHash()
static byte [] Semi.ModVerification.GetModHash |
( |
string |
dir_path, |
|
|
ModConfig |
config |
|
) |
| |
|
inlinestatic |
Calculates a checksum of all files in the directory.
- Returns
- The mod's checksum.
- Parameters
-
dir_path | Path to the mod's directory. |
config | The mod's config object. |
◆ ValidateHash()
static bool Semi.ModVerification.ValidateHash |
( |
byte[] |
valid, |
|
|
byte[] |
computed |
|
) |
| |
|
inlinestatic |
Compares two hashes.
- Returns
true
, if hashes match, false
otherwise.
- Parameters
-
valid | The known valid hash. |
computed | The computed hash.. |
◆ ValidateHashOnline()
static bool Semi.ModVerification.ValidateHashOnline |
( |
string |
mod_id, |
|
|
byte[] |
hash |
|
) |
| |
|
inlinestatic |
Compares two hashes based on the SemiModVerification repository.
- Returns
true
, if hashes match, false
otherwise.
- Parameters
-
mod_id | ID of the mod. |
hash | The computed hash. |
The documentation for this class was generated from the following file:
- Semi/src/Semi/ModVerification.cs