#include "pixelGameEngine.h" using namespace olc; bool USE_DEBUG_DISPLAY=false; int EMULATOR_SCREEN_WIDTH = 64; int EMULATOR_SCREEN_HEIGHT = 32; int EMULATOR_PIXEL_SIZE=5; class SNESEmulator : public olc::PixelGameEngine { public: //SplashScreen s; SNESEmulator() { sAppName = "SNES Emulator"; } public: std::arraymemory={}; //128KB RAM std::arraycartridge={}; //32 Mb cartidge (seems to be the max) bool OnUserCreate() override { std::ifstream file("/home/niconiconii/Documents/Earthbound (USA).smc",std::ios_base::binary); uint32_t counter=0x0; while (file.good()){ uint8_t val = file.get(); if (val!=-1){ memory[counter++]=val; std::cout<