summaryrefslogtreecommitdiffstats
path: root/src/main.cpp
diff options
context:
space:
mode:
authorLaG1924 <12997935+LaG1924@users.noreply.github.com>2017-12-29 13:11:10 +0100
committerLaG1924 <12997935+LaG1924@users.noreply.github.com>2018-01-13 03:39:33 +0100
commit968206877c2ee1cf220abdafb39a876c16afb0fa (patch)
tree6c265e41f2f2e2e7eee4465c1dc15fa18aa9f759 /src/main.cpp
parentImplemented new event system (diff)
downloadAltCraft-968206877c2ee1cf220abdafb39a876c16afb0fa.tar
AltCraft-968206877c2ee1cf220abdafb39a876c16afb0fa.tar.gz
AltCraft-968206877c2ee1cf220abdafb39a876c16afb0fa.tar.bz2
AltCraft-968206877c2ee1cf220abdafb39a876c16afb0fa.tar.lz
AltCraft-968206877c2ee1cf220abdafb39a876c16afb0fa.tar.xz
AltCraft-968206877c2ee1cf220abdafb39a876c16afb0fa.tar.zst
AltCraft-968206877c2ee1cf220abdafb39a876c16afb0fa.zip
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 2b213b3..8be8412 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -4,6 +4,7 @@
#include <set>
+#include <SDL.h>
#include <easylogging++.h>
const char *getTimeSinceProgramStart(void) {
@@ -36,11 +37,11 @@ void initLogger() {
int main(int argc, char** argv) {
srand(time(0));
initLogger();
- LOG(WARNING) << "Sizeof EventData is " << sizeof(EventData);
+ //LOG(WARNING) << "Sizeof EventData is " << sizeof(EventData);
try {
if (SDL_Init(0) == -1)
- throw std::runtime_error("SDL initialization failed: " + std::string(SDL_GetError()));
+ throw std::runtime_error(std::string("SDL initialization failed: ") + SDL_GetError());
} catch (std::exception& e) {
LOG(ERROR) << e.what();
return -1;