| 34 | } |
| 35 | |
| 36 | void ReadWrite::writeToFile(const int pos, BYTE value) const { |
| 37 | std::ofstream file(ioFile.toStdString(), std::ios::in | std::ios::out | std::ios::binary); |
| 38 | if (file.is_open()) { |
| 39 | file.seekp(pos); |
| 40 | file << value; |
| 41 | } |
| 42 | } |
| 43 | |
| 44 | bool ReadWrite::isAcpiEc() const { |
| 45 | if (QFile::exists(acpi_ec_file)) { |