summaryrefslogtreecommitdiff
path: root/src/cli.h
diff options
context:
space:
mode:
authorjakob <jakob@memeware.net>2017-01-09 20:51:41 -0500
committerjakob <jakob@memeware.net>2017-01-09 20:51:41 -0500
commit8eaa3f0526d380afe422152fada2bea27b8d8f70 (patch)
treeeded2f25609b6d131a377233fb215efac2b31c18 /src/cli.h
parent7d141c7e79bb9688a475b88722f6101ad01ef782 (diff)
Significant progress on implementing file decryption. Offsets as of now are trying to go from within the table, which is incorrect. A working commit should come tomorrow.
Diffstat (limited to 'src/cli.h')
-rw-r--r--src/cli.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/cli.h b/src/cli.h
index 0008d63..43d9465 100644
--- a/src/cli.h
+++ b/src/cli.h
@@ -17,8 +17,20 @@
#pragma once
+/* Enumerable type representing Nekopara games, as they have different
+ encryption keys. It's stored as an enum because multiple strcmp calls
+ to figure out how to decrypt is a waste of processor cycles. */
+typedef enum game {
+ NO_CRYPTO,
+ NEKOPARA_VOLUME_0,
+ NEKOPARA_VOLUME_0_STEAM,
+ NEKOPARA_VOLUME_1,
+ NEKOPARA_VOLUME_1_STEAM,
+} game;
+
/* Binary structure for storing command-line options. */
struct configuration {
+ game source; /* Which decryption key to use. */
const char *archive_path; /* Path to archive to extract. */
};