aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 3ca986f..df5c558 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -1,17 +1,26 @@
#include "../include/Channel.hpp"
#include "../include/ChannelSidePanel.hpp"
#include "../include/Cache.hpp"
+#include "../include/ResourceCache.hpp"
#include <string>
#include <SFML/Graphics.hpp>
#include <cstring>
#include <X11/Xlib.h>
+#include <boost/filesystem/path.hpp>
using namespace std;
using namespace dchat;
using namespace TinyProcessLib;
-int main()
+int main(int argc, char **argv)
{
+ /*
+ boost::filesystem::path programPath(argv[0]);
+ auto parentPath = programPath.parent_path();
+ printf("parent path: %s\n", parentPath.string().c_str());
+ boost::filesystem::current_path(parentPath); // Ensures loading of resources works no matter which path we run this executable from
+ */
+
XInitThreads();
sf::RenderWindow window(sf::VideoMode(1920, 1080), "dchat");
window.setVerticalSyncEnabled(false);