From 54edc1e50b22cc4fc0f3fb6a63ebf83258f8b89e Mon Sep 17 00:00:00 2001 From: Christian Schulz Date: Sat, 26 Jul 2025 01:50:38 +0200 Subject: [PATCH] Fix typo --- src/Greenshot.Editor/FileFormat/readme.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Greenshot.Editor/FileFormat/readme.md b/src/Greenshot.Editor/FileFormat/readme.md index 54668eb4e..90a5e9005 100644 --- a/src/Greenshot.Editor/FileFormat/readme.md +++ b/src/Greenshot.Editor/FileFormat/readme.md @@ -84,7 +84,7 @@ Greenshot template files supports two file formats: - **Serialization:** Uses [MessagePack](https://github.com/MessagePack-CSharp/MessagePack-CSharp/) for serialization. - **Marker:** Files are identified by the marker string `"GreenshotTemplate02"` at the beginning of the file. _(Note: Schema version (i.e. `".01"` ) is not part of the marker)_. -- **Implementation:** See `Greenshot.Editor.FileFormat.V2.GreenshotFileV2`. +- **Implementation:** See `Greenshot.Editor.FileFormat.V2.GreenshotTemplateV2`. - **Binary Data Structure:** The file consists of: 1. 22 bytes for the Greenshot marker string with complete version string (i.e. `"GreenshotTemplate02.01"` ). @@ -192,7 +192,7 @@ From `FileFormatHandler` to the implementation, only first-class domain objects # Serialization The serialization is done by these steps: - 1. Convert the domain object (`GreenshotFile` or `GreenshotTemplate`) to a DTO (`GreenshotFileDto` or `GreenshotTemplateDto`) by using `Greenshot.Editor.FileFormat.Dto.ConvertDtoToDomain.ToDto()` + 1. Convert the domain object (`GreenshotFile` or `GreenshotTemplate`) to a DTO (`GreenshotFileDto` or `GreenshotTemplateDto`) by using `Greenshot.Editor.FileFormat.Dto.ConvertDomainToDto.ToDto()` 1. Convert the DTO to binary data using the MessagePack serializer. _(Serialization with BinaryFormatter is not implemented anymore.)_ # Deserialization