emuReadState(szFile);  sprintf(winBuffer, winResLoadString(IDS_LOADED_STATE_N), num);
emuReadState(ofn.lpstrFile);
void loadSaveGame(int num){  char * p = strrchr(filename,'\\');  if(p)    p++;  else    p = filename;  char * saveDir = regQueryStringValue("saveDir", NULL);  if(!saveDir)    saveDir = getDirFromFile(filename);  if(isDriveRoot(saveDir))    sprintf(szFile, "%s%s%d.sgm", saveDir, p, num);  else    sprintf(szFile, "%s\\%s%d.sgm", saveDir, p, num);  emuReadState(szFile);  sprintf(winBuffer, winResLoadString(IDS_LOADED_STATE_N), num);    systemScreenMessage(winBuffer);}