1
0
Fork 0
mirror of https://github.com/HamletDuFromage/aio-switch-updater.git synced 2024-09-19 21:45:04 +01:00
AIO-switch-updater/include/JC_color_swapper.hpp
2020-09-20 02:21:28 +02:00

24 lines
706 B
C++

#pragma once
#include <iomanip>
#include <fstream>
#include <sstream>
#include <filesystem>
#include <iostream>
#include <tuple>
#include <switch.h>
#include "constants.hpp"
#include "progress_event.hpp"
#include "json.hpp"
int hexToBGR(std::string hex);
std::string BGRToHex(int v);
bool isHexaAnd3Bytes(std::string str);
int setColor(std::vector<int> colors);
int backupToJSON(nlohmann::json &profiles, const char* path);
void writeJSONToFile(nlohmann::json &profiles, const char* path);
std::tuple<std::vector<std::string>, std::vector<std::vector<int>>> getProfiles(const char* path);
void changeJCColor(std::vector<int> values);
nlohmann::json backupProfile();
void backupJCColor(const char* path);