// I spent like an hour debugging this I hate life
extern "C" {
#include <nofrendo.h>
}
// External preOSDInit() function
extern int preOSDInit();
#include "constants.h"
void setup() {
  Serial.begin(9600);
  // TODO: put code here you moron
  Serial.println("esp32: pre-initialization complete. running preOSDInit");
  if (preOSDInit() != 0) {
    Serial.println(F("arduino: halting"));
    return;
  }
  char *argv[1]; // argv[0] == NES filename
  argv[0] = "hi";
  nofrendo_main(1, argv);
  
}
void loop() {
  // put your main code here, to run repeatedly:
}