|
@@ -135,14 +135,14 @@ int main() {
|
|
Database output_db;
|
|
Database output_db;
|
|
|
|
|
|
if (exportImagesToDb) {
|
|
if (exportImagesToDb) {
|
|
- output_db.InitDatabase(output_dir + std::string("Images.db"));
|
|
|
|
|
|
+ output_db.InitDatabase(output_dir + std::string("Images.db"), true);
|
|
int extracted_jpg_files_num = file.ExportFilesByType(JPG, output_db);
|
|
int extracted_jpg_files_num = file.ExportFilesByType(JPG, output_db);
|
|
std::cout << "Extracted " << extracted_jpg_files_num << " .jpg files to Images.db" << std::endl << std::flush;
|
|
std::cout << "Extracted " << extracted_jpg_files_num << " .jpg files to Images.db" << std::endl << std::flush;
|
|
output_db.CloseDatabase();
|
|
output_db.CloseDatabase();
|
|
}
|
|
}
|
|
|
|
|
|
if (exportSoundsToDb) {
|
|
if (exportSoundsToDb) {
|
|
- output_db.InitDatabase(output_dir + std::string("Sounds.db"));
|
|
|
|
|
|
+ output_db.InitDatabase(output_dir + std::string("Sounds.db"), true);
|
|
int extracted_wav_files_num = file.ExportFilesByType(WAV, output_db);
|
|
int extracted_wav_files_num = file.ExportFilesByType(WAV, output_db);
|
|
int extracted_ogg_files_num = file.ExportFilesByType(OGG, output_db);
|
|
int extracted_ogg_files_num = file.ExportFilesByType(OGG, output_db);
|
|
std::cout << "Extracted " << extracted_wav_files_num << " .wav files to Sounds.db" << std::endl << std::flush;
|
|
std::cout << "Extracted " << extracted_wav_files_num << " .wav files to Sounds.db" << std::endl << std::flush;
|
|
@@ -151,21 +151,21 @@ int main() {
|
|
}
|
|
}
|
|
|
|
|
|
if (exportTextsToDb) {
|
|
if (exportTextsToDb) {
|
|
- output_db.InitDatabase(output_dir + std::string("Texts.db"));
|
|
|
|
|
|
+ output_db.InitDatabase(output_dir + std::string("Texts.db"), true);
|
|
int extracted_text_files_num = file.ExportFilesByType(TEXT, output_db);
|
|
int extracted_text_files_num = file.ExportFilesByType(TEXT, output_db);
|
|
std::cout << "Extracted " << extracted_text_files_num << " text files to Texts.db" << std::endl << std::flush;
|
|
std::cout << "Extracted " << extracted_text_files_num << " text files to Texts.db" << std::endl << std::flush;
|
|
output_db.CloseDatabase();
|
|
output_db.CloseDatabase();
|
|
}
|
|
}
|
|
|
|
|
|
if (exportFontsToDb) {
|
|
if (exportFontsToDb) {
|
|
- output_db.InitDatabase(output_dir + std::string("Fonts.db"));
|
|
|
|
|
|
+ output_db.InitDatabase(output_dir + std::string("Fonts.db"), true);
|
|
int extracted_font_files_num = file.ExportFilesByType(FONT, output_db);
|
|
int extracted_font_files_num = file.ExportFilesByType(FONT, output_db);
|
|
std::cout << "Extracted " << extracted_font_files_num << " font files to Fonts.db" << std::endl << std::flush;
|
|
std::cout << "Extracted " << extracted_font_files_num << " font files to Fonts.db" << std::endl << std::flush;
|
|
output_db.CloseDatabase();
|
|
output_db.CloseDatabase();
|
|
}
|
|
}
|
|
|
|
|
|
if (exportTexturesToDb) {
|
|
if (exportTexturesToDb) {
|
|
- output_db.InitDatabase(output_dir + std::string("Textures.db"));
|
|
|
|
|
|
+ output_db.InitDatabase(output_dir + std::string("Textures.db"), true);
|
|
int extracted_dds_files_num = file.ExportFilesByType(DDS, output_db);
|
|
int extracted_dds_files_num = file.ExportFilesByType(DDS, output_db);
|
|
std::cout << "Extracted " << extracted_dds_files_num << " .dds files to Textures.db" << std::endl << std::flush;
|
|
std::cout << "Extracted " << extracted_dds_files_num << " .dds files to Textures.db" << std::endl << std::flush;
|
|
output_db.CloseDatabase();
|
|
output_db.CloseDatabase();
|