mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-02-23 22:52:34 +01:00
byuu says: Changelog: - synchronizes lots of nall changes - changes displayed program title from tomoko to higan(*) - browser dialog sort is case-insensitive - .sys folders look at user-selected library path; no longer hard-coded Tried to get rid of the file modes from the Windows browser dialog, but it was being a bitch so I left it on for now. - The storage locations and binary still use tomoko. I'm not really sure what to do here. The idea is there may be more than one "higan" UI in the future, but I don't want people to go around calling the entire program by the UI name. For official Windows releases, I can rename the binaries to "higan-{profile}.exe", and by putting the config files with the binary, they won't ever see the tomoko folder. Linux is of course trickier. Note: Windows users will need to edit hiro/components.hpp and comment out these lines: #define Hiro_Console #define Hiro_IconView #define Hiro_SourceView #define Hiro_TreeView I forgot to do that, and too lazy to upload another WIP.
27 lines
443 B
C++
27 lines
443 B
C++
#ifndef NALL_BEAT_FILE_HPP
|
|
#define NALL_BEAT_FILE_HPP
|
|
|
|
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);
|
|
}
|
|
|
|
}}
|
|
|
|
#endif
|