aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/create_kyradat/extract.cpp2
-rw-r--r--tools/create_kyradat/search.h2
-rw-r--r--tools/create_kyradat/tables.cpp2
-rw-r--r--tools/create_lure/create_lure_dat.cpp10
-rw-r--r--tools/create_msvc/create_msvc.cpp4
-rw-r--r--tools/create_teenagent/create_teenagent.cpp24
6 files changed, 22 insertions, 22 deletions
diff --git a/tools/create_kyradat/extract.cpp b/tools/create_kyradat/extract.cpp
index e0c613cc6c..f47a3f649c 100644
--- a/tools/create_kyradat/extract.cpp
+++ b/tools/create_kyradat/extract.cpp
@@ -29,7 +29,7 @@
namespace {
-// Extraction function prototypes
+// Extraction function prototypes
bool extractRaw(PAKFile &out, const ExtractInformation *info, const byte *data, const uint32 size, const char *filename, int id);
bool extractStrings(PAKFile &out, const ExtractInformation *info, const byte *data, const uint32 size, const char *filename, int id);
diff --git a/tools/create_kyradat/search.h b/tools/create_kyradat/search.h
index 05846181f4..6459606ef8 100644
--- a/tools/create_kyradat/search.h
+++ b/tools/create_kyradat/search.h
@@ -102,7 +102,7 @@ public:
struct ResultData {
SearchData data;
uint32 offset;
-
+
ResultData() : data(), offset() {}
ResultData(SearchData d, uint32 o) : data(d), offset(o) {}
};
diff --git a/tools/create_kyradat/tables.cpp b/tools/create_kyradat/tables.cpp
index 00dd424a58..a74f58e2c3 100644
--- a/tools/create_kyradat/tables.cpp
+++ b/tools/create_kyradat/tables.cpp
@@ -1024,7 +1024,7 @@ const ExtractEntrySearchData k1AmigaGameSFXTableProvider[] = {
const ExtractEntrySearchData k2SeqplayPakFilesProvider[] = {
{ UNK_LANG, kPlatformUnknown, { 0x00000022, 0x000008E0, { { 0xB7, 0x3B, 0x51, 0x46, 0x78, 0x2D, 0x4D, 0x82, 0xD4, 0x30, 0xFC, 0x6E, 0xC4, 0x5B, 0x27, 0x3E } } } }, // DOS floppy + PC98
-
+
{ UNK_LANG, kPlatformPC, { 0x00000046, 0x0000121A, { { 0x42, 0xC2, 0x5A, 0xDC, 0x27, 0x2D, 0xB4, 0x44, 0x85, 0x58, 0x0F, 0xB6, 0x6D, 0x76, 0x04, 0x4F } } } }, // CD
{ UNK_LANG, kPlatformPC, { 0x00000014, 0x000004FA, { { 0xBB, 0x4C, 0x16, 0xEB, 0x56, 0xEF, 0xAC, 0x68, 0x6B, 0x49, 0x96, 0x3A, 0x9F, 0x00, 0x75, 0xF6 } } } }, // demo
{ UNK_LANG, kPlatformPC, { 0x0000000C, 0x00000308, { { 0xC0, 0xAC, 0x10, 0xF1, 0x12, 0xD1, 0x21, 0x92, 0xA1, 0x62, 0x5B, 0x6E, 0xCF, 0x88, 0x32, 0x7C } } } }, // Lands of Lore demo
diff --git a/tools/create_lure/create_lure_dat.cpp b/tools/create_lure/create_lure_dat.cpp
index 6006624a32..faa32541bc 100644
--- a/tools/create_lure/create_lure_dat.cpp
+++ b/tools/create_lure/create_lure_dat.cpp
@@ -1814,16 +1814,16 @@ void createFile(const char *outFilename) {
outputFile.seek(6 + 5 * (langIndex - 1));
switch (language) {
- case IT_ITA:
+ case IT_ITA:
outputFile.writeByte(LANG_IT_ITA);
break;
- case FR_FRA:
+ case FR_FRA:
outputFile.writeByte(LANG_FR_FRA);
break;
- case DE_DEU:
+ case DE_DEU:
outputFile.writeByte(LANG_DE_DEU);
break;
- case ES_ESP:
+ case ES_ESP:
outputFile.writeByte(LANG_ES_ESP);
break;
case EN_ANY:
@@ -1833,7 +1833,7 @@ void createFile(const char *outFilename) {
printf("Unknown language encountered\n");
exit(1);
}
-
+
outputFile.writeLong(outputStart);
// Write out start header
diff --git a/tools/create_msvc/create_msvc.cpp b/tools/create_msvc/create_msvc.cpp
index 182b4fb4f2..c756f2b638 100644
--- a/tools/create_msvc/create_msvc.cpp
+++ b/tools/create_msvc/create_msvc.cpp
@@ -484,7 +484,7 @@ int main(int argc, char *argv[]) {
setup.defines = getEngineDefines(setup.engines);
StringList featureDefines = getFeatureDefines(setup.features);
setup.defines.splice(setup.defines.begin(), featureDefines);
-
+
setup.libraries = getFeatureLibraries(setup.features);
setup.libraries.push_back("winmm.lib");
@@ -1160,7 +1160,7 @@ bool isInList(const std::string &dir, const std::string &fileName, const StringL
if (compareName.empty()) {
if (i->size() >= dir.size() + 1 && i->at(dir.size()) == '/')
return true;
- else
+ else
continue;
}
diff --git a/tools/create_teenagent/create_teenagent.cpp b/tools/create_teenagent/create_teenagent.cpp
index ec98a66dd7..930f40581f 100644
--- a/tools/create_teenagent/create_teenagent.cpp
+++ b/tools/create_teenagent/create_teenagent.cpp
@@ -42,12 +42,12 @@ static void extract(FILE * fout, FILE *fin, size_t pos, size_t size, const char
perror(what);
exit(1);
}
-
+
if (fread(buf, size, 1, fin) != 1) {
perror(what);
exit(1);
}
-
+
if (fwrite(buf, size, 1, fout) != 1) {
perror(what);
exit(1);
@@ -60,18 +60,18 @@ int main(int argc, char *argv[]) {
exit(1);
}
const char * fname = argv[1];
-
+
uint8 digest[16];
if (!md5_file(fname, digest, 0)) {
fprintf(stderr, "cannot calculate md5 for %s", fname);
exit(1);
}
-
- const uint8 ethalon[16] = {
- 0x51, 0xb6, 0xd6, 0x47, 0x21, 0xf7, 0xc4, 0xb4,
- 0x98, 0xbf, 0xc0, 0xf3, 0x23, 0x01, 0x3e, 0x36,
+
+ const uint8 ethalon[16] = {
+ 0x51, 0xb6, 0xd6, 0x47, 0x21, 0xf7, 0xc4, 0xb4,
+ 0x98, 0xbf, 0xc0, 0xf3, 0x23, 0x01, 0x3e, 0x36,
};
-
+
if (memcmp(digest, ethalon, 16) != 0) {
fprintf(stderr, "cannot extract data, your md5: ");
print_hex(stderr, digest, 16);
@@ -85,7 +85,7 @@ int main(int argc, char *argv[]) {
perror("opening input file");
exit(1);
}
-
+
const char * dat_name = "teenagent.dat";
FILE *fout = fopen(dat_name, "wb");
if (fout == NULL) {
@@ -96,11 +96,11 @@ int main(int argc, char *argv[]) {
extract(fout, fin, 0x00200, 0xb3b0, "extracting code segment");
extract(fout, fin, 0x0b5b0, 0xe790, "extracting data segment");
extract(fout, fin, 0x1c890, 0x8be2, "extracting second data segment");
-
+
fclose(fin);
fclose(fout);
-
+
fprintf(stderr, "please run \"gzip -n %s\"\n", dat_name);
-
+
return 0;
}