diff system/file.h @ 35:2c574c3d50a9

* Moved XOR key related things to a proper location * xclannad -v now displays the real version (as specified in configure.ac)
author thib
date Sun, 08 Mar 2009 19:16:36 +0000
parents 3fe3e5f184b5
children 5f548e5957a8
line wrap: on
line diff
--- a/system/file.h
+++ b/system/file.h
@@ -105,6 +105,17 @@ class SCN2kFILE;
 /* ARCINFO はファイルを読み込むために必要 */
 class ARCINFO;
 class ARCFILE_ATOM;
+
+class KEYHOLDER {
+public:
+	void SetKey(char[16]);
+	void SetKey2(char[33]);
+	void GuessKey(char*);
+	const char* GetKey(void);
+private:
+	char key[16];
+};
+
 class FILESEARCH {
 public:
 #define TYPEMAX 14
@@ -136,7 +147,6 @@ private:
 	/* デフォルトの information */
 	static ARCTYPE default_is_archived[TYPEMAX];
 	static char* default_dirnames[TYPEMAX];
-	char xor_key[16];
 public:
 	FILESEARCH(void);
 	~FILESEARCH();
@@ -154,9 +164,6 @@ public:
 	/* ある種類のファイルをすべてリストアップ
 	** 末尾は NULL pointer
 	*/
-	void SetXorKey(char*);
-	void GuessXorKey(char*);
-	const char* GetXorKey(void);
 	char** ListAll(FILETYPE type);
 };
 
@@ -225,5 +232,6 @@ public:
 };
 
 extern FILESEARCH file_searcher;
+extern KEYHOLDER key_holder;
 
 #endif // !defined(__KANON_FILE_H__)