forked from lioncash/ExtractData
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Common.h
113 lines (95 loc) · 5.14 KB
/
Common.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
#pragma once
#include "Error.h"
//----------------------------------------------------------------------------------------
//-- Symbol Declaration -----------------------------------------------------------------
//----------------------------------------------------------------------------------------
#define ID_TOOLBAR 10000
#define ID_LISTVIEW1 10001
#define ID_STATUS 10002
#define ID_TIMER 10003
#define ID_LISTVIEW2 10100
#define ID_DB_BUTTON1 10101
#define ID_DB_BUTTON2 10102
#define ID_DB_BUTTON3 10103
#define ID_DB_BUTTON4 10104
#define SBL_STR_INI_EXTRACTDATA _T("ExtractData.ini")
#define SBL_STR_INI_SUSIE _T("Susie.ini")
typedef unsigned __int64 QWORD;
typedef QWORD* LPQWORD;
//----------------------------------------------------------------------------------------
//-- Structure Declaration ---------------------------------------------------------------
//----------------------------------------------------------------------------------------
// Optional Items
struct SOption
{
// Related listview
COLORREF ListBkColor; // Background color of list
TCHAR szListBkColor[7]; // Background color of list
COLORREF ListTextColor; // List text color
TCHAR szListTextColor[7]; // List text color
// Search file related
std::vector<BOOL> bSearch; // Types of files to search
BOOL bHighSearchOgg; // Increase the accuracy of searching for OGG files
// Extraction related
BOOL bCreateFolder; // Each folder to extract
BOOL bFixOgg; // Fix an OGG file's CRC on extraction
BOOL bEasyDecrypt; // Enable/Disable simple decoding
BOOL bRenameScriptExt; // Change the extension of a script
DWORD BufSize; // Buffer size
// Image related
BOOL bDstBMP; // BMP Output
BOOL bDstPNG; // PNG Output
DWORD CmplvPng; // PNG Compression Level
BOOL bAlphaBlend; // Include/don't include alpha in the output image
BOOL bFastAlphaBlend; // Speed up the alpha blending process
DWORD BgRGB; // Background color
TCHAR szBgRGB[7]; // Background color
// Output destination related
YCString TmpDir; // Temporary folder
BOOL bSaveSel; // Specified output directory (if chosen to explicitly choose it)
BOOL bSaveSrc; // Output destination is the same as the input destination
BOOL bSaveDir; // Fixed output directory
YCString SaveDir; // Fixed output folder
// Susie Plug-in related
BOOL bSusieUse; // Use/Not use Susie plugins
YCString SusieDir; // Susie Plugin Folder
BOOL bSusieFirst; // Give/Don't give priority to Susie plugins
// Database Related
BOOL bUseDB; // Use database functions
};
// File Info
struct SFileInfo
{
YCString name; // Filename
DWORD sizeOrg; // File Size
DWORD dwSizeOrg2; // File Size 2
YCString sSizeOrg; // File size with a comma
DWORD sizeCmp; // Compressed file size
YCString sSizeCmp; // Compressed file size with a comma
YCString format; // File Format
YCString arcName; // Archive file to load
QWORD start; // Start address
QWORD end; // End address
DWORD arcID; // Distinguishes between multiple open files
DWORD arcsID; // Archive file split IDs
std::vector<DWORD> sizesOrg; // File size (Used when data is scattered)
std::vector<DWORD> sizesCmp; // Compressed File size (Used when data is scattered)
std::vector<DWORD> starts; // Start Address(Used when data is scattered)
std::vector<DWORD> bCmps; // Check if it is compressed or not (Used when data is scattered)
YCString title; // Game title
DWORD key; // File Key (File value)
DWORD type; // File type
std::set<YCString> sTmpFilePath; // Path to extracted files
SFileInfo()
{
key = 0;
}
};
// Database Info
struct FILEINFODB
{
DWORD start;
YCString path;
DWORD ctFile;
YCString sCtFile;
};