mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
[Aaru.Helpers] 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:
@@ -52,6 +52,7 @@ public sealed class ImageChecksumViewModel : ViewModelBase
|
||||
{
|
||||
// How many sectors to read at once
|
||||
const uint SECTORS_TO_READ = 256;
|
||||
const string MODULE_NAME = "Image Checksum ViewModel";
|
||||
readonly IMediaImage _inputFormat;
|
||||
readonly Window _view;
|
||||
bool _adler32Checked;
|
||||
@@ -514,7 +515,7 @@ public sealed class ImageChecksumViewModel : ViewModelBase
|
||||
mediaChecksum?.Update(hiddenSector);
|
||||
}
|
||||
|
||||
AaruConsole.DebugWriteLine("Checksum command", UI.Track_0_starts_at_sector_1_and_ends_at_sector_2,
|
||||
AaruConsole.DebugWriteLine(MODULE_NAME, UI.Track_0_starts_at_sector_1_and_ends_at_sector_2,
|
||||
currentTrack.Sequence, currentTrack.StartSector, currentTrack.EndSector);
|
||||
|
||||
if(ChecksumTracksChecked)
|
||||
|
||||
Reference in New Issue
Block a user