Diff for /xmil/win9x/xmil.cpp between versions 1.16 and 1.17

version 1.16, 2004/08/12 17:57:36 version 1.17, 2004/08/12 18:22:54
Line 23 Line 23
 #include        "pccore.h"  #include        "pccore.h"
 #include        "iocore.h"  #include        "iocore.h"
 #include        "timing.h"  #include        "timing.h"
 #include        "keystat.h"  
 #if defined(SUPPORT_RESUME) || defined(SUPPORT_STATSAVE)  #if defined(SUPPORT_RESUME) || defined(SUPPORT_STATSAVE)
 #include        "statsave.h"  #include        "statsave.h"
 #endif  #endif
Line 123  static const OEMCHAR xmilresumeext[] = O Line 122  static const OEMCHAR xmilresumeext[] = O
 #endif  #endif
 #if defined(SUPPORT_STATSAVE)  #if defined(SUPPORT_STATSAVE)
 static const OEMCHAR xmilflagext[] = OEMTEXT(".sv%u");  static const OEMCHAR xmilflagext[] = OEMTEXT(".sv%u");
   static const OEMCHAR str_statload[] = OEMTEXT("Status Load");
 #endif  #endif
   
 #if defined(SUPPORT_RESUME) || defined(SUPPORT_STATSAVE)  #if defined(SUPPORT_RESUME) || defined(SUPPORT_STATSAVE)
   
   static const OEMCHAR str_loaderr[] = OEMTEXT("Couldn't restart");
   static const OEMCHAR str_conflict[] = OEMTEXT("Conflict!\n\n%s\nContinue?");
   
 static void getstatfilename(OEMCHAR *path, const OEMCHAR *ext, UINT size) {  static void getstatfilename(OEMCHAR *path, const OEMCHAR *ext, UINT size) {
   
         file_cpyname(path, modulefile, size);          file_cpyname(path, modulefile, size);
Line 157  static void flagdelete(const OEMCHAR *ex Line 160  static void flagdelete(const OEMCHAR *ex
         file_delete(path);          file_delete(path);
 }  }
   
 static int flagload(const char *ext, const char *title, BOOL force) {  static int flagload(const OEMCHAR *ext, const OEMCHAR *title, BOOL force) {
   
         int             ret;          int             ret;
         int             id;          int             id;
         OEMCHAR path[MAX_PATH];          OEMCHAR path[MAX_PATH];
         OEMCHAR buf[1024];          OEMCHAR buf[1024];
           OEMCHAR buf2[1024 + 32];
   
         getstatfilename(path, ext, NELEMENTS(path));          getstatfilename(path, ext, NELEMENTS(path));
         winuienter();          winuienter();
         id = IDYES;          id = IDYES;
         ret = statsave_check(path, buf, NELEMENTS(buf));          ret = statsave_check(path, buf, NELEMENTS(buf));
         if (ret & (~STATFLAG_DISKCHG)) {          if (ret & (~STATFLAG_DISKCHG)) {
                 MessageBox(hWndMain, "Couldn't restart", title, MB_OK | MB_ICONSTOP);                  MessageBox(hWndMain, str_loaderr, title, MB_OK | MB_ICONSTOP);
                 id = IDNO;                  id = IDNO;
         }          }
         else if ((!force) && (ret & STATFLAG_DISKCHG)) {          else if ((!force) && (ret & STATFLAG_DISKCHG)) {
                 char buf2[1024 + 256];                  OEMSPRINTF(buf2, str_conflict, buf);
                 wsprintf(buf2, "Conflict!\n\n%s\nContinue?", buf);  
                 id = MessageBox(hWndMain, buf2, title,                  id = MessageBox(hWndMain, buf2, title,
                                                                                 MB_YESNOCANCEL | MB_ICONQUESTION);                                                                                  MB_YESNOCANCEL | MB_ICONQUESTION);
         }          }
Line 422  static void xmilcmd(HWND hWnd, UINT cmd) Line 425  static void xmilcmd(HWND hWnd, UINT cmd)
                         else if ((cmd >= IDM_FLAGLOAD) &&                          else if ((cmd >= IDM_FLAGLOAD) &&
                                 (cmd < (IDM_FLAGLOAD + SUPPORT_STATSAVE))) {                                  (cmd < (IDM_FLAGLOAD + SUPPORT_STATSAVE))) {
                                 OEMSPRINTF(ext, xmilflagext, cmd - IDM_FLAGLOAD);                                  OEMSPRINTF(ext, xmilflagext, cmd - IDM_FLAGLOAD);
                                 flagload(ext, "Status Load", TRUE);                                  flagload(ext, str_statload, TRUE);
                         }                          }
 #endif  #endif
                         break;                          break;

Removed from v.1.16  
changed lines
  Added in v.1.17


RetroPC.NET-CVS <cvs@retropc.net>