emuWriteBMP(buffer);
emulator.emuWriteBMP(buffer);
void systemScreenCapture(int a){  char buffer[2048];  if(captureFormat) {    if(captureDir[0])      sprintf(buffer, "%s/%s%02d.bmp", captureDir, sdlGetFilename(filename), a);    else      sprintf(buffer, "%s%02d.bmp", filename, a);    emuWriteBMP(buffer);  } else {    if(captureDir[0])      sprintf(buffer, "%s/%s%02d.png", captureDir, sdlGetFilename(filename), a);    else      sprintf(buffer, "%s%02d.png", filename, a);    emuWritePNG(buffer);  }  systemScreenMessage("Screen capture");}