Commit Graph

106 Commits

Author SHA1 Message Date
aa39281033 [Console] Use Spectre.Console to show exceptions in the CLI.
GUI still uses `ConsoleWindow`.
2023-10-08 04:10:43 +01:00
9572abf86d [Plugin system] Move byte addressable media images to dependency injection. 2023-10-06 00:46:36 +01:00
508b78719d [Plugin system] Move writable media images to dependency injection. 2023-10-06 00:40:44 +01:00
bc7e02b24c [Plugin system] Move filesystems to dependency injection. 2023-10-05 16:39:06 +01:00
24d1702838 [Plugin system] Move filters to dependency injection. 2023-10-05 16:00:59 +01:00
b27d0c1f03 [Plugin system] Initialize plugin base in tests. 2023-10-05 16:00:38 +01:00
e693238a7c [Plugin system] Initialize plugin base on application load. 2023-10-05 15:26:44 +01:00
a50d892f2a Move most of PluginBase logic into Aaru.Commontypes. 2023-10-05 13:47:59 +01:00
064f149107 Inline out variable declarations. 2023-10-05 02:53:20 +01:00
7363a5d9c5 Redo Reformat and cleanup.
Rider EAP was having a bug interpreting .editorconfig that didn't generate the code style as we wanted.
This is now done with Rider-stable.
2023-10-04 17:36:20 +01:00
bc8bf7a2dc Fix possible null assignment to non-nullable entities. 2023-10-04 09:55:17 +01:00
ac79d1e94e Convert into primary constructor. 2023-10-04 08:30:03 +01:00
4ff79c804a Invert 'if' statement to reduce nesting. 2023-10-04 07:39:31 +01:00
6ffde343ce [Aaru.Gui] Reformat and cleanup. 2023-10-03 23:27:57 +01:00
7fb3a87b24 [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.
2023-10-03 18:50:19 +01:00
76af2b8ed8 Translate Aaru.UI to Spanish (Spain). 2023-10-03 12:59:47 +01:00
09a5c00891 Use a more precise mechanism to measure elapsed times in operations. 2023-09-26 20:16:24 +01:00
8786474169 Fix byte speed rates not being properly "humanized". 2023-09-26 10:51:43 +01:00
25c5cbaae5 Use humanizer to show seconds. 2023-09-26 03:39:10 +01:00
3d1b0581a5 Use Humanizer to print speeds. 2023-09-26 02:40:11 +01:00
06edf51ebc Fix MessageBox invocation in GUI. 2023-09-26 01:29:07 +01:00
9abb0368ee Update Avalonia to 11.0.4. 2023-09-25 22:58:48 +01:00
dc26b85c2f Move filesystem metadata to GetInformation method for information only plugins. 2022-12-17 22:41:56 +00:00
7a2b37496b Make PluginBase a singleton. 2022-12-17 20:50:17 +00:00
d59cbb56e1 Use Type for writable media image plugin list. 2022-12-17 19:50:32 +00:00
0c1bf310f9 Use Type for filesystem plugin list. 2022-12-17 14:56:37 +00:00
21fdb296c2 Use source generator for resume JSON serializing. 2022-12-16 18:01:21 +00:00
b9f9572c8b Ensure metadata enums get serialized as strings. 2022-12-16 18:00:46 +00:00
30144d1ac0 Use Aaru Metadata instead of CICM Metadata and convert to it if found. 2022-12-16 03:05:50 +00:00
cfbcde35f5 Use Aaru Metadata instead of CICM Metadata. 2022-12-15 22:21:37 +00:00
a0ac747fef Use JSON for resume file instead of XML. 2022-12-15 03:09:41 +00:00
14ab866e4a Add an interface for classes able to draw media status, like the spiral. 2022-12-05 19:43:48 +00:00
805ebd4b42 Update copyright year. 2022-12-03 16:07:17 +00:00
938b40f774 Move all localizable strings from Aaru.Core project to resources. 2022-11-23 16:06:46 +00:00
81195f8630 Move all localizable strings from Aaru.Gui project to resources. 2022-11-19 21:10:41 +00:00
ecb4842071 Move all strings to properties in Aaru.Gui. 2022-11-16 21:40:54 +00:00
2f9b7fe0a1 General code cleanup and style refactor. 2022-11-15 15:58:48 +00:00
bd3fe7bd4e General code style and feature fixes. 2022-11-15 01:35:15 +00:00
f90cc6593f Unfix async Task where it doesn't work. 2022-11-14 09:41:19 +00:00
040b4eab4e More pattern matching. 2022-11-14 01:49:18 +00:00
8a511d0d44 Fix async void when it should be async Task, ignore the rest. 2022-11-14 01:38:50 +00:00
c4a95c40ca Use negated pattern. 2022-11-14 01:20:28 +00:00
a8a74f385a Merge null/pattern checks into complex pattern. 2022-11-13 20:46:29 +00:00
6586721321 Join local variable declaration and assignment. 2022-11-13 20:27:32 +00:00
fca57318f5 Convert to switch expression. 2022-11-13 19:59:30 +00:00
c5b34ee3d9 Convert if to switch statement. 2022-11-13 19:38:03 +00:00
ec141cc251 Handle run-out sectors in CD-R(W) discs. Fixes #620 2022-04-14 13:11:48 +01:00
f9f97c02c5 Mark newly discovered pregap sectors for retry. Fixes incorrect data on some track type changes. 2022-04-09 20:27:05 +01:00
755da6cd2c Use error number for device instead of exception. 2022-03-26 20:18:01 +00:00
89a2c52911 Move OS specific command implementation to OS specific device class. 2022-03-26 19:35:13 +00:00