Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
version 0.2.0

Update README.md
  • Loading branch information
bucanero committed Sep 28, 2022
1 parent bf06037 commit 01bebb1
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 11 deletions.
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ The library is cross-platform and is required to build:
### Bruteforce Save Data (BSD)

- Commands: `set`, `write`, `search`, `insert`, `delete`, `copy`, `decrypt`, `encrypt`, `endian_swap`, `compress`, `decompress`
- Hashes: `crc16`, `crc32`, `crc32big`, `crc64_iso`, `crc64_ecma`, `md2`, `md4`, `md5`, `md5_xor`, `sha1`, `sha256`, `sha384`, `sha512`, `hmac_sha1`, `sha1_xor64`, `adler16`, `adler32`, `checksum32`, `sdbm`, `fnv1`, `add`, `wadd`, `dwadd`, `qwadd`, `wadd_le`, `dwadd_le`, `wsub`
- Hashes: `crc16`, `crc32`, `crc32big`, `crc64_iso`, `crc64_ecma`, `md2`, `md4`, `md5`, `md5_xor`, `sha1`, `sha256`, `sha384`, `sha512`, `hmac_sha1`, `sha1_xor64`, `adler16`, `adler32`, `checksum32`, `sdbm`, `fnv1`, `add`, `wadd`, `dwadd`, `qwadd`, `wadd_le`, `dwadd_le`, `wsub`, `force_crc32`
- Custom hashes: `eachecksum`, `ffx_checksum`, `ff13_checksum`, `ducktales_checksum`, `kh25_checksum`, `khcom_checksum`, `mgs2_checksum`, `sw4_checksum`, `toz_checksum`, `tiara2_checksum`
- Encryption: `aes_ecb`, `des_ecb`, `des3_cbc`, `blowfish_ecb`
- Custom encryption: `diablo3`, `dw8xl`, `silent_hill3`, `nfs_undercover`, `ffxiii`, `borderlands3`, `mgs_pw`, `mgs_base64`, `mgs`
Expand Down Expand Up @@ -67,6 +67,15 @@ USAGE: ./patcher file.savepatch <1,2,7,..,18> target.file

**Note:** `patcher-bigendian` is provided to apply patches on PS3 (big-endian) save-game data files.

## Credits

* [Bucanero](http://www.bucanero.com.ar/): [Project developer](https://github.com/bucanero)

### Acknowledgments

* [aldostools](https://aldostools.org/): [Bruteforce Save Data](https://bruteforcesavedata.forumms.net/)
* [aluigi](http://aluigi.org): [offzip/packzip](http://aluigi.altervista.org/mytoolz.htm)

## License

[Apollo Save Tool](https://github.com/bucanero/apollo-lib/) library - Copyright (C) 2020-2022 [Damian Parrino](https://twitter.com/dparrino)
Expand Down
2 changes: 2 additions & 0 deletions include/apollo.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
#include <stdint.h>
#include <stdlib.h>

#define APOLLO_LIB_VERSION "0.2.0"

#define APOLLO_CODE_GAMEGENIE 1
#define APOLLO_CODE_BSD 2

Expand Down
10 changes: 3 additions & 7 deletions source/patches.c
Original file line number Diff line number Diff line change
Expand Up @@ -941,18 +941,14 @@ int apply_bsd_patch_code(const char* filepath, code_entry_t* code)
_log_dump("SHA1/HMAC HASH", var->data, var->len);
}

// set [*]:force_crc32(*)*
else if (wildcard_match_icase(line, "force_crc32(*)*"))
// set [*]:force_crc32:*
else if (wildcard_match_icase(line, "force_crc32:*"))
{
uint32_t hash, newcrc;
len = range_end - range_start;

line += strlen("force_crc32(");
tmp = strrchr(line, ')');
*tmp = 0;

line = strchr(line, ':')+1;
newcrc = _parse_int_value(line, pointer, dsize);
*tmp = ')';

hash = force_crc32((uint8_t*)data + range_start, len, pointer, newcrc);

Expand Down
4 changes: 3 additions & 1 deletion tools/parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
#include <string.h>
#include "apollo.h"

#define CLI_VERSION APOLLO_LIB_VERSION

static int log = 0;

void print_usage(const char* argv0)
Expand Down Expand Up @@ -32,7 +34,7 @@ int main(int argc, char **argv)
char *data;
list_t* list_codes;

printf("\nApollo .savepatch parser v0.1.0 - (c) 2021 by Bucanero\n\n");
printf("\nApollo .savepatch parser v%s - (c) 2021 by Bucanero\n\n", CLI_VERSION);

if (--argc < 1)
{
Expand Down
4 changes: 2 additions & 2 deletions tools/patcher.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
#endif

#ifdef __PS3_PC__
#define CLI_VERSION "0.1.0 PS3/big-endian"
#define CLI_VERSION APOLLO_LIB_VERSION " PS3/big-endian"
#else
#define CLI_VERSION "0.1.0"
#define CLI_VERSION APOLLO_LIB_VERSION
#endif

static int log = 0;
Expand Down

0 comments on commit 01bebb1

Please sign in to comment.