Skip to content

Instantly share code, notes, and snippets.

bool is_sandssim_file(std::string path) {
fs::path p(path);
if (fs::exists(path) && std::filesystem::is_regular_file(path) && p.extension().string() == ".sandssim")
return true;
return false;
}
int load(std::string path, char* write_name_to) {
std::ifstream file(path, std::ios::binary);
#include <raylib.h>
#define RAYGUI_IMPLEMENTATION
#include "../other libraries/raygui-master/src/raygui.h"
#include "../other libraries/RaylibGUI/RaylibGUI.h"
#include <iostream>
#include <fstream>
#include <nlohmann/json.hpp>
#include <random>
#include <cmath>
#include <thread>