Skip to content

Commit

Permalink
Changed the command-line parser behavior
Browse files Browse the repository at this point in the history
* All arguments now have their equivalent long-names. `-b` is equal to `--basename` for example

* For arguments that need data: the argument and the data can be separated now. `-b test` is equal to `-btest`

Added 2 new command-line

* -d, --detect. Only detects game file, print information to stdout, and exit. (File is assumed not modified).

* -x, --cross-encrypt. Allows to convert between game files without decrypting it and encrypting it again. Example: `-j test.txt -x sif-en` will convert test.txt (which is SIF JP game file) to SIF EN game file. -x can't be used with -e

Other changes:

* Changed datatype in loops. (EN_Decrypter.cc & JP_Decrypter.cc)
  • Loading branch information
MikuAuahDark committed Jan 22, 2016
1 parent d00df81 commit af845b0
Show file tree
Hide file tree
Showing 4 changed files with 266 additions and 40 deletions.
6 changes: 3 additions & 3 deletions VersionInfo.rc
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
#define _STR2(x) _DEPSTR1(x)

#define HONOKAMIKU_VERSION_MAJOR 2
#define HONOKAMIKU_VERSION_MINOR 1
#define HONOKAMIKU_VERSION_PATCH 1
#define HONOKAMIKU_VERSION_MINOR 2
#define HONOKAMIKU_VERSION_PATCH 0
#define HONOKAMIKU_VERSION_STRING "" _STR2(HONOKAMIKU_VERSION_MAJOR) "." _STR2(HONOKAMIKU_VERSION_MINOR) "." _STR2(HONOKAMIKU_VERSION_PATCH) ""
#define HONOKAMIKU_VERSION_STRING_RC "2.1.1.0"
#define HONOKAMIKU_VERSION_STRING_RC "2.2.0.0"

#ifdef RC_INVOKED

Expand Down
2 changes: 1 addition & 1 deletion cpp_src/EN_Decrypter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ void EN_Dctx::decrypt_block(void* b,uint32_t size)
buffer++;
}

for(int i=0;i<size;i++)
for(unsigned int i=0;i<size;i++)
{
if(i%2==0)
buffer[i]^=char(xor_key);
Expand Down
Loading

0 comments on commit af845b0

Please sign in to comment.