Added fileCommon, added freebie font, start listening to SDL Keyboard text input
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
#include <filesystem>
|
||||
#include <fstream>
|
||||
#include "json.hpp"
|
||||
|
||||
namespace fs = std::filesystem;
|
||||
|
||||
static std::fstream stream;
|
||||
|
||||
extern bool OpenFile(fs::path path);
|
||||
extern nlohmann::json GetData();
|
||||
/// Note we have a specific function for json for pretty printing purpose
|
||||
bool SaveJsonFile(fs::path path, nlohmann::json j);
|
||||
// bool SaveFile(fs::path path, void *dataToSave); // Leaving it commented out until later
|
||||
inline void CloseFileStream() { stream.close(); }
|
||||
Reference in New Issue
Block a user