diff --git a/Data/Map/Ugly.tmx b/Data/Map/Ugly.tmx
index 33d5a7a..c7240e3 100644
--- a/Data/Map/Ugly.tmx
+++ b/Data/Map/Ugly.tmx
@@ -54,21 +54,21 @@
- eJztl8ESwyAIRJP//+leemA6oIC7BhvejIemlV0QNb2upir3d2TnZeYyyHi5lYHWYsaWc5ha2TpFNFZ0Inn86jCY5SGf7exbK8bMm/xs/darZ3lA1yGSR0ZzpI/cvzvy8PiIxNR8ovaaxxsrDxSM+LP9dSnfIzQ1ndWY6L70ajLy0OqP0rHOCkadGHW3YiPvHQZe/dH6R+Iw8Xiovh5VPEiifrS9m723VkF4qNDj/5AHsi+eXgvpRT47ich6sOu9Yz13vEecmAdDI3IXN03TNE3zHqz3z9GoSOa/cUVOywPVJ5m5qJ5k9XamBitarF5YzaPK+RLVP+n8a5rmnXwA7bUBUA==
+ eJztl8ESwyAIRJP//+leemA6oIC7BhvejIemlV0QNb2upir3d2TnZeYyyHi5lYHWYsaWc5ha2TpFNFZ0Inn86jCY5SGf7exbK8bMm/xs/darZ3lA1yGSR0ZzpI/cvzvy8PiIxNR8ovaaxxsrDxSM+LP9dSnfIzQ1ndWY6L70ajLy0OqP0rHOCkadGHW3YiPvHQZe/dH6R+Iw8Xiovh5VPEiifrS9m723VkF4qNDj/5AHsi+eXgvpRT47ich6sOu9Yz13vEecmAdDI3IXN03TNE3zHqz3z9GoSOa/cUVOywPVJ5m5qJ5k9XamBitarF5YzaPK+RLVP+n8a5rmnXwA7bUBUA==
-
-
-
-
-
-
\ No newline at end of file
+
+
+
+
+
+
diff --git a/src/BattleSys/Slot.h b/src/BattleSys/Slot.h
index 198af8d..f8e7b48 100644
--- a/src/BattleSys/Slot.h
+++ b/src/BattleSys/Slot.h
@@ -19,7 +19,7 @@ public:
bool IsSelected(void) const { return _selected; }
void SetSelected(bool selected) { _selected = selected; }
- bool Triggered(void) const { return _triggered; }
+ bool Triggered(void) const { return _triggered; }
int GetX(void) { return x; }
int GetY(void) { return y; }
diff --git a/src/System/Filesystem/Checksum.cpp b/src/System/Filesystem/Checksum.cpp
deleted file mode 100644
index 1d4a240..0000000
--- a/src/System/Filesystem/Checksum.cpp
+++ /dev/null
@@ -1,71 +0,0 @@
-#include "Checksum.h"
-#include "InputStreamWrapper.h"
-#include
-#include
-
-namespace saracraft {
-namespace filesystem {
-
-unsigned int Checksum::CountChecksumForFile(const char* filename) {
- unsigned int chksum = 0;
- int filesize = 0;
- bool success = CountChecksumForFileImpl(&chksum, &filesize, filename);
- if(success) {
- return chksum;
- } else {
- assert(0);
- return 0;
- }
-}
-
-bool Checksum::DoesChecksumAndSizeMatchFile(unsigned int checksum, int filesize, const char* filename) {
- unsigned int chksum = 0;
- int size = 0;
- bool success = CountChecksumForFileImpl(&chksum, &size, filename);
- if(success) {
- if(chksum == checksum && filesize == size)
- return true;
- else
- return false;
- } else {
- return false;
- }
-}
-
-bool Checksum::CountChecksumForFileImpl(unsigned int* checksum, int* filesize, const char* filename) {
- assert(filename != NULL);
-
- filesystem::SC_FILE* f = filesystem::sc_fopen(filename, "rb");
- if(f == NULL) {
- return false;
- }
-
- int size = filesystem::sc_fsize(f);
-
- char* buf = new char[size];
-
- bool success = true;
- int got = filesystem::sc_fread(buf, size, 1, f);
- if(got != 1) {
- success = false;
- } else {
- success = true;
- *filesize = size;
- unsigned int hashCode = 1327341033;
- int hashmult = 0;
- for(int i = 0; i < size; i++) {
- if((i % 73) == 0)
- hashCode += (buf[i] << hashmult);
- else
- hashCode ^= (buf[i] << hashmult);
- hashmult+=4;
- if(hashmult > 23) hashmult -= 23;
- }
- delete [] buf;
- filesystem::sc_fclose(f);
- return success;
- }
-}
-
-} // End of namespace filesystem.
-} // End of namespace saracraft.
diff --git a/src/System/Filesystem/Checksum.h b/src/System/Filesystem/Checksum.h
deleted file mode 100644
index 6b80e3c..0000000
--- a/src/System/Filesystem/Checksum.h
+++ /dev/null
@@ -1,17 +0,0 @@
-#pragma once
-
-namespace saracraft {
-namespace filesystem {
-
-class Checksum {
-public:
- static unsigned int CountChecksumForFile(const char* filename);
- static bool DoesChecksumAndSizeMatchFile(unsigned int checksum,
- int filesize, const char* filename);
-private:
- static bool CountChecksumForFileImpl(unsigned int* checksum,
- int* filesize, const char* filename);
-};
-
-} // Namespace filesystem.
-} // Namespace saracraft.
diff --git a/src/System/Filesystem/EmptyBuffer.h b/src/System/Filesystem/EmptyBuffer.h
deleted file mode 100644
index 498e657..0000000
--- a/src/System/Filesystem/EmptyBuffer.h
+++ /dev/null
@@ -1,17 +0,0 @@
-#pragma once
-
-#include "InputStream.h"
-
-namespace saracraft {
-namespace filesystem {
-
-struct EmptyBuffer: public IInputStreamBuffer {
- unsigned char PopByte(void) { return 0; }
- bool IsEof(void) const { return true; }
- int GetSize(void) const { return 0; }
- void PopBytes(char*, int) { }
-};
-
-} // Namespace filesystem.
-} // Namespace saracraft.
-
diff --git a/src/System/Filesystem/FileInputStream.cpp b/src/System/Filesystem/FileInputStream.cpp
deleted file mode 100644
index 45d9619..0000000
--- a/src/System/Filesystem/FileInputStream.cpp
+++ /dev/null
@@ -1,119 +0,0 @@
-#include
-#include "../Debug.h"
-#include "InputFileStream.h"
-
-namespace saracraft {
-namespace filesystem {
-
-struct InputFileStreamBufferData {
- FILE* fp;
- size_t size;
-
- InputFileStreamBufferData(const std::string filename) : fp(0), size(0) {
- fp = fopen(filename.c_str(), "rb");
-
-#ifdef __UNIX__
- // Another ugly as hell case sensitive hack.
- // if anyone finds a nice way to handle this. Please implement it. -- Allanis
- if(!fp) {
- std::string filename = filename;
- for(unsigned int i = 0; i < filename.size(); i++) {
- if(isupper(filename[i]))
- filename[i] = tolower(filename[i]);
- else if(filename[i] == '\\')
- filename[i] = '/';
- }
- fp = fopen(filename.c_str(), "rb");
- }
-#endif
- if(fp) {
- fseek(fp, 0, SEEK_END);
- size = ftell(fp);
- fseek(fp, 0, SEEK_SET);
- }
- if(!size)
- Close();
- }
-
- ~InputFileStreamBufferData(void) {
- Close();
- }
-
- void Close(void) {
- if(fp) {
- fclose(fp);
- fp = 0;
- }
- }
-};
-
-InputFileStreamBuffer::~InputFileStreamBuffer(void) {
-
-}
-
-unsigned char InputFileStreamBuffer::PopByte(void) {
- char byte = 0;
- if(_data->fp) {
- int input = fgetc(_data->fp);
- if(input == EOF)
- _data->Close();
- else
- byte = (char)input;
- }
- return byte;
-}
-
-bool InputFileStreamBuffer::IsEof(void) const {
- if(!_data->fp)
- return true;
-
- return false;
-}
-
-int InputFileStreamBuffer::GetSize(void) const {
- if(!_data->fp)
- return 0;
-
- // This could cause maybe about a 2GB limimitation to file size
- // by casting to int. Feel free to FIXME.
- // -- Allanis
- return int(_data->size);
-}
-
-void InputFileStreamBuffer::PopBytes(char* buffer, int bytes) {
- if(!_data->fp) {
- for(int i = 0; i < bytes; ++i)
- buffer[i] = 0;
- } else {
- //_data->stream.read(buffer, bytes);
- if(fread(buffer, 1, bytes, _data->fp) != (unsigned)bytes)
- _data->Close();
- }
-}
-
-// HACK: ffs. This is needed to get some sense into the input stream error reporting.
-//bool input_file_stream_no_nonexisting_error_message = false;
-
-//void SetInputStreamErrorReporting(bool logNonExisting) {
-// input_file_stream_no_nonexisting_error_message = !logNonExisting;
-//}
-
-InputStream CreateInputFileStream(const std::string& filename) {
-
- InputStream inputStream;
- boost::shared_ptr inputBuffer(new InputBuffer(filename));
- // Eh.. No.
- // TODO: Would need a seperate error check, eof is not the same as the file does not exist..
- // This would just spam error messages. We don't want that.
- /*if(!inputBuffer->IsEof()) {
- if(!input_file_stream_no_nonexisting_error_message) {
- Debug->logger("CreateInputFileStream - File \"%s\"does not exist or is zero length.", filename.c_str());
- }
- }*/
- inputStream.SetBuffer(inputBuffer);
- return inputStream;
-}
-
-} // Namespace filesystem.
-} // Namespace saracraft.
-
diff --git a/src/System/Filesystem/FileList.cpp b/src/System/Filesystem/FileList.cpp
deleted file mode 100644
index 5850366..0000000
--- a/src/System/Filesystem/FileList.cpp
+++ /dev/null
@@ -1,282 +0,0 @@
-#include
-#include