[Aaru.Images] Introduced constants for module names

Introduces constant fields for respective debug module names, replacing the hardcoded ones.
This is done to standardize the naming convention, reduce redundancy and potentially avoid any typos or name mismatches across the project.
This change makes the code more maintainable and easier to update in case module names need to be changed.
This commit is contained in:
2023-10-03 18:39:13 +01:00
parent 7fb3a87b24
commit 828c1e3da0
116 changed files with 1826 additions and 1728 deletions

View File

@@ -71,4 +71,6 @@ public sealed partial class Dart : IMediaImage
DriveSerialNumber = null,
DriveFirmwareRevision = null
};
const string MODULE_NAME = "DART plugin";
}

View File

@@ -259,7 +259,7 @@ public sealed partial class Dart
}
catch(InvalidCastException) {}
AaruConsole.DebugWriteLine("DART plugin", Localization.Image_application_0_version_1, _imageInfo.Application,
AaruConsole.DebugWriteLine(MODULE_NAME, Localization.Image_application_0_version_1, _imageInfo.Application,
_imageInfo.ApplicationVersion);
_imageInfo.Sectors = (ulong)(header.srcSize * 2);