17 Commits

Author SHA1 Message Date
f55e8a42cc GCC nonstring fixes 2025-04-19 19:53:52 -07:00
Lioncash
d02e783905 Directory: Make indexForFile() a const member function
This doesn't modify instance state, so it can be turned into a const
member function.
2025-04-19 19:53:50 -07:00
Lioncash
72457c3246 General: Use std::array for constructors where applicable
Same behavior, but ensures input absolutely satisfies the total amount
of data that needs to be copied.
2025-04-19 19:53:50 -07:00
Lioncash
b7a5e3b36c Directory: Avoid use of unnamed struct in union
Anonymous structs have a limitation on GCC when involving non-trivial
default constructors, as it's a compiler extension and not actually
standard C++ to use anonymous structs. We can give the struct a concrete
name, which fixes this issue.
2025-04-19 19:53:50 -07:00
Lioncash
42c4ae8daa Revert "Revert "General: Use std::array where applicable""
This reverts commit 698e37d6a41770f53d1a9e9f5c4559102a4b2ad5.
2025-04-19 19:53:50 -07:00
c037818600 Revert "General: Use std::array where applicable" 2025-04-19 19:53:50 -07:00
Lioncash
8895960bad General: Use std::array where applicable
Same behavior, but with stronger typing. We can also eliminate usages of
magic values in some places.
2025-04-19 19:53:50 -07:00
Lioncash
7a813a7365 General: Avoid indirect includes
Ensures all inclusions are made where necessary.
2025-04-19 19:53:49 -07:00
Jack Andersen
8ce7a33f65 New code style refactor 2025-04-19 19:53:40 -07:00
06a19cd1d3 Revert file index 0 avoidance 2025-04-19 19:53:25 -07:00
Jack Andersen
537a8f684d FileHandle refactor 2025-04-19 19:53:25 -07:00
Jack Andersen
e60054ae91 Checksum and Card copy fixes 2025-04-19 19:53:25 -07:00
Jack Andersen
b6e878f343 Changes to support CMemoryCardSys integration 2025-04-19 19:53:25 -07:00
a1beab1181 Formatting pass 2025-04-19 19:53:24 -07:00
061753f92f Add directory iteration 2025-04-19 19:53:19 -07:00
731682d9a3 Complete base API 2025-04-19 19:53:17 -07:00
1c1f1d9adc Finalize directory structure
Remove unrelated classes from Card.{cpp,hpp}
2025-04-19 19:53:15 -07:00