Commit Graph

7 Commits

Author SHA1 Message Date
joevt 939d6d42bb machineproperties: More binary property values. 2024-03-14 19:16:54 -07:00
dingusdev 2a0f391113 Compilation fix for machineproperties.cpp 2023-12-17 20:04:10 -07:00
Mihai Parparita 35c86ad6bf Clean up #includes
Result of running IWYU (https://include-what-you-use.org/) and
applying most of the suggestions about unncessary includes and
forward declarations.

Was motivated by observing that <thread> was being included in
ppcopcodes.cpp even though it was unused (found while researching
the use of threads), but seems generally good to help with build
times and correctness.
2023-11-03 00:33:47 -07:00
Maxim Poliakovski 3a7e3c1986 Initial support for device path properties. 2023-06-18 23:15:08 +02:00
joevt 64fec88436 Fix compiler warnings: cast loses precision.
Use explicit cast when converting large integer types to smaller integer types when it is known that the most significant bytes are not required.
For pcidevice, check the ROM file size before casting to int. We'll allow expansion ROM sizes up to 4MB but usually they are 64K, sometimes 128K, rarely 256K.
for machinefactory, change the type to size_t so that it can correctly get the size of files that are larger than 4GB; it already checks the file size is 4MB before we need to cast to uint32_t.
For floppyimg, check the image size before casting to int. For raw images, only allow files up to 2MB. For DiskCopy42 images, it already checks the file size, so do the cast after that.
2023-01-11 01:17:12 -08:00
Maxim Poliakovski 65512dc434 New property type: BinProperty. 2022-07-19 23:45:41 +02:00
Maxim Poliakovski f609839894 machineproperties: improve StrProperty class. 2021-12-05 19:16:39 +01:00