Functions | |
| void | MaybeStripSmcHeader (std::vector< uint8_t > &rom_data, unsigned long &size) |
| std::string | MakeSafeTimestamp (std::time_t now_c) |
| absl::StatusOr< std::filesystem::path > | GetAvailableBackupPath (const std::filesystem::path &requested_path) |
| void | BestEffortFsyncFile (const std::filesystem::path &path) |
| void | BestEffortFsyncParentDir (const std::filesystem::path &file_path) |
| absl::Status | CreateRequiredBackup (const std::filesystem::path &source_path, const std::filesystem::path &requested_backup_path) |
Variables | |
| constexpr size_t | kBaseRomSize = 1048576 |
| Standard SNES ROM size for The Legend of Zelda: A Link to the Past (1MB) | |
| constexpr size_t | kHeaderSize = 0x200 |
| Size of the optional SMC/SFC copier header that some ROM dumps include. | |
| void yaze::anonymous_namespace{rom.cc}::MaybeStripSmcHeader | ( | std::vector< uint8_t > & | rom_data, |
| unsigned long & | size ) |
Definition at line 61 of file rom.cc.
References kBaseRomSize, kHeaderSize, LOG_INFO, and MaybeStripSmcHeader().
Referenced by MaybeStripSmcHeader().

| std::string yaze::anonymous_namespace{rom.cc}::MakeSafeTimestamp | ( | std::time_t | now_c | ) |
Definition at line 70 of file rom.cc.
References MakeSafeTimestamp().
Referenced by MakeSafeTimestamp().

| absl::StatusOr< std::filesystem::path > yaze::anonymous_namespace{rom.cc}::GetAvailableBackupPath | ( | const std::filesystem::path & | requested_path | ) |
Definition at line 98 of file rom.cc.
References GetAvailableBackupPath().
Referenced by CreateRequiredBackup(), and GetAvailableBackupPath().

| void yaze::anonymous_namespace{rom.cc}::BestEffortFsyncFile | ( | const std::filesystem::path & | path | ) |
Definition at line 184 of file rom.cc.
References BestEffortFsyncFile().
Referenced by BestEffortFsyncFile(), and CreateRequiredBackup().

| void yaze::anonymous_namespace{rom.cc}::BestEffortFsyncParentDir | ( | const std::filesystem::path & | file_path | ) |
Definition at line 206 of file rom.cc.
References BestEffortFsyncParentDir().
Referenced by BestEffortFsyncParentDir(), and CreateRequiredBackup().

| absl::Status yaze::anonymous_namespace{rom.cc}::CreateRequiredBackup | ( | const std::filesystem::path & | source_path, |
| const std::filesystem::path & | requested_backup_path ) |
Definition at line 124 of file rom.cc.
References BestEffortFsyncFile(), BestEffortFsyncParentDir(), CreateRequiredBackup(), and GetAvailableBackupPath().
Referenced by CreateRequiredBackup().

|
constexpr |
Standard SNES ROM size for The Legend of Zelda: A Link to the Past (1MB)
Definition at line 52 of file rom.cc.
Referenced by MaybeStripSmcHeader().
|
constexpr |
Size of the optional SMC/SFC copier header that some ROM dumps include.
Definition at line 55 of file rom.cc.
Referenced by MaybeStripSmcHeader().