mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-02-24 23:22:25 +01:00
byuu says: New update. Most of the work today went into eliminating hiro::Image from all objects in all ports, replacing with nall::image. That took an eternity. Changelog: - fixed crashing bug when loading games [thanks endrift!!] - toggling "show status bar" option adjusts window geometry (not supposed to recenter the window, though) - button sizes improved; icon-only button icons no longer being cut off
24 lines
394 B
C++
24 lines
394 B
C++
#pragma once
|
|
|
|
namespace nall { namespace Beat {
|
|
|
|
struct File : file {
|
|
using file::file;
|
|
auto read() -> uint8_t override;
|
|
auto write(uint8_t) -> void override;
|
|
Hash::CRC32 checksum;
|
|
};
|
|
|
|
auto File::read() -> uint8_t {
|
|
uint8_t data = file::read();
|
|
checksum.data(data);
|
|
return data;
|
|
}
|
|
|
|
auto File::write(uint8_t data) -> void {
|
|
checksum.data(data);
|
|
return file::write(data);
|
|
}
|
|
|
|
}}
|