clang-format everything

This commit is contained in:
Martin Michelsen
2023-04-16 15:44:12 -07:00
parent b733f4e199
commit 91e484e514
119 changed files with 5101 additions and 5664 deletions
+1 -7
View File
@@ -1,12 +1,10 @@
#include "SaveFileFormats.hh"
#include <string>
#include <stdexcept>
#include <string>
using namespace std;
ShuffleTables::ShuffleTables(PSOV2Encryption& crypt) {
for (size_t x = 0; x < 0x100; x++) {
this->forward_table[x] = x;
@@ -48,8 +46,6 @@ void ShuffleTables::shuffle(void* vdest, const void* vsrc, size_t size, bool rev
memcpy(&dest[size & 0xFFFFFF00], &src[size & 0xFFFFFF00], size & 0xFF);
}
bool PSOGCIFileHeader::checksum_correct() const {
uint32_t cs = crc32(&this->game_name, this->game_name.bytes());
cs = crc32(&this->embedded_seed, sizeof(this->embedded_seed), cs);
@@ -88,8 +84,6 @@ bool PSOGCIFileHeader::is_ep3() const {
return (this->game_id[2] == 'S');
}
uint32_t compute_psogc_timestamp(
uint16_t year,
uint8_t month,