aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2018-04-23 09:53:31 +0200
committerdec05eba <dec05eba@protonmail.com>2018-04-23 09:55:12 +0200
commitddff0f1b7ea84f6a1321b8eb8a4d47317873d955 (patch)
tree28565c3a3d336559fcf149e1552ae237cc3d855d /src/main.cpp
parent1e0e68f9cda51c881b32a54d9eece71c1428f7ac (diff)
Add word wrap for message board & TODO
TODO: Message board is now redrawn every frame. Text should be modified to render on static & dynamic texture -> text & static images on static texture, gif & video on dynamic texture
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);