From 66c4b4f82b4d1c92cd478583e62f38cbe8c593ac Mon Sep 17 00:00:00 2001 From: fourtf Date: Wed, 20 Jun 2018 19:10:54 +0200 Subject: [PATCH] added the fourtf cdn --- src/providers/emoji/emojis.cpp | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/src/providers/emoji/emojis.cpp b/src/providers/emoji/emojis.cpp index 186b40044..78f49a3c6 100644 --- a/src/providers/emoji/emojis.cpp +++ b/src/providers/emoji/emojis.cpp @@ -4,6 +4,8 @@ #include "debug/log.hpp" #include "singletons/settingsmanager.hpp" +#include + namespace chatterino { namespace providers { namespace emoji { @@ -157,8 +159,6 @@ void Emojis::loadEmojiOne2Capabilities() file.open(QFile::ReadOnly); QTextStream in(&file); - uint unicodeBytes[4]; - while (!in.atEnd()) { // Line example: sunglasses 1f60e QString line = in.readLine(); @@ -208,12 +208,18 @@ void Emojis::loadEmojiSet() // clang-format off static std::map emojiSets = { {"EmojiOne 2", "https://cdnjs.cloudflare.com/ajax/libs/emojione/2.2.6/assets/png/"}, - {"EmojiOne 3", "https://cdn.jsdelivr.net/npm/emoji-datasource-emojione@4.0.4/img/emojione/64/"}, - {"Twitter", "https://cdn.jsdelivr.net/npm/emoji-datasource-twitter@4.0.4/img/twitter/64/"}, - {"Facebook", "https://cdn.jsdelivr.net/npm/emoji-datasource-facebook@4.0.4/img/facebook/64/"}, - {"Apple", "https://cdn.jsdelivr.net/npm/emoji-datasource-apple@4.0.4/img/apple/64/"}, - {"Google", "https://cdn.jsdelivr.net/npm/emoji-datasource-google@4.0.4/img/google/64/"}, - {"Messenger", "https://cdn.jsdelivr.net/npm/emoji-datasource-messenger@4.0.4/img/messenger/64/"}, +// {"EmojiOne 3", "https://cdn.jsdelivr.net/npm/emoji-datasource-emojione@4.0.4/img/emojione/64/"}, +// {"Twitter", "https://cdn.jsdelivr.net/npm/emoji-datasource-twitter@4.0.4/img/twitter/64/"}, +// {"Facebook", "https://cdn.jsdelivr.net/npm/emoji-datasource-facebook@4.0.4/img/facebook/64/"}, +// {"Apple", "https://cdn.jsdelivr.net/npm/emoji-datasource-apple@4.0.4/img/apple/64/"}, +// {"Google", "https://cdn.jsdelivr.net/npm/emoji-datasource-google@4.0.4/img/google/64/"}, +// {"Messenger", "https://cdn.jsdelivr.net/npm/emoji-datasource-messenger@4.0.4/img/messenger/64/"}, + {"EmojiOne 3", "https://cdn.fourtf.com/emoji/emojione/64/"}, + {"Twitter", "https://cdn.fourtf.com/emoji/twitter/64/"}, + {"Facebook", "https://cdn.fourtf.com/emoji/facebook/64/"}, + {"Apple", "https://cdn.fourtf.com/emoji/apple/64/"}, + {"Google", "https://cdn.fourtf.com/emoji/google/64/"}, + {"Messenger", "https://cdn.fourtf.com/emoji/messenger/64/"}, }; // clang-format on