Diff for /np2/wince/ini.cpp between versions 1.5 and 1.14

version 1.5, 2003/12/01 21:15:13 version 1.14, 2004/06/23 16:06:12
Line 192  static void iniwrsetarg8(char *work, int Line 192  static void iniwrsetarg8(char *work, int
         }          }
 }  }
   
   
   static const UINT8 utf8hdr[3] = {0xef, 0xbb, 0xbf};
   
 void ini_write(const char *path, const char *title,  void ini_write(const char *path, const char *title,
                                                                                         const INITBL *tbl, UINT count) {                                                                                          const INITBL *tbl, UINT count) {
   
Line 205  const INITBL *pterm; Line 208  const INITBL *pterm;
         if (fh == FILEH_INVALID) {          if (fh == FILEH_INVALID) {
                 return;                  return;
         }          }
   #if defined(OSLANG_UTF8)
           file_write(fh, utf8hdr, sizeof(utf8hdr));
   #endif
         milstr_ncpy(work, "[", sizeof(work));          milstr_ncpy(work, "[", sizeof(work));
         milstr_ncat(work, title, sizeof(work));          milstr_ncat(work, title, sizeof(work));
         milstr_ncat(work, "]\r\n", sizeof(work));          milstr_ncat(work, "]\r\n", sizeof(work));
Line 283  const INITBL *pterm; Line 289  const INITBL *pterm;
   
 // ----  // ----
   
   #if defined(OSLANG_UTF8)
   static const char ini_title[] = "NekoProjectIICE";
   static const char inifile[] = "np2ce.cfg";
   #else
 static const char ini_title[] = "NekoProjectII";  static const char ini_title[] = "NekoProjectII";
 static const char inifile[] = "np2.cfg";  static const char inifile[] = "np2.cfg";
   #endif
   
 static const INITBL iniitem[] = {  static const INITBL iniitem[] = {
         {"pc_model", INITYPE_STR,               &np2cfg.model,          {"pc_model", INITYPE_STR,               &np2cfg.model,
Line 297  static const INITBL iniitem[] = { Line 308  static const INITBL iniitem[] = {
         {"ExMemory", INITYPE_UINT8,             &np2cfg.EXTMEM,                 0},          {"ExMemory", INITYPE_UINT8,             &np2cfg.EXTMEM,                 0},
         {"ITF_WORK", INITYPE_BOOL,              &np2cfg.ITF_WORK,               0},          {"ITF_WORK", INITYPE_BOOL,              &np2cfg.ITF_WORK,               0},
   
         {"HDD1FILE", INITYPE_STR,               np2cfg.hddfile[0],              MAX_PATH},          {"HDD1FILE", INITYPE_STR,               np2cfg.sasihdd[0],              MAX_PATH},
         {"HDD2FILE", INITYPE_STR,               np2cfg.hddfile[1],              MAX_PATH},          {"HDD2FILE", INITYPE_STR,               np2cfg.sasihdd[1],              MAX_PATH},
   #if defined(SUPPORT_SCSI)
           {"SCSIHDD0", INITYPE_STR,               np2cfg.scsihdd[0],              MAX_PATH},
           {"SCSIHDD1", INITYPE_STR,               np2cfg.scsihdd[1],              MAX_PATH},
           {"SCSIHDD2", INITYPE_STR,               np2cfg.scsihdd[2],              MAX_PATH},
           {"SCSIHDD3", INITYPE_STR,               np2cfg.scsihdd[3],              MAX_PATH},
   #endif
           {"fontfile", INITYPE_STR,               np2cfg.fontfile,                MAX_PATH},
           {"biospath", INITYPE_STR,               np2cfg.biospath,                MAX_PATH},
   
         {"SampleHz", INITYPE_UINT16,    &np2cfg.samplingrate,   0},          {"SampleHz", INITYPE_UINT16,    &np2cfg.samplingrate,   0},
         {"Latencys", INITYPE_UINT16,    &np2cfg.delayms,                0},          {"Latencys", INITYPE_UINT16,    &np2cfg.delayms,                0},
Line 353  static const INITBL iniitem[] = { Line 372  static const INITBL iniitem[] = {
         {"F12_bind", INITYPE_UINT8,             &np2oscfg.F12KEY,               0},          {"F12_bind", INITYPE_UINT8,             &np2oscfg.F12KEY,               0},
         {"e_resume", INITYPE_BOOL,              &np2oscfg.resume,               0},          {"e_resume", INITYPE_BOOL,              &np2oscfg.resume,               0},
   
   #if !defined(GX_DLL)
           {"WindposX", INITYPE_SINT32,    &np2oscfg.winx,                 0},
           {"WindposY", INITYPE_SINT32,    &np2oscfg.winy,                 0},
   #endif
 #if defined(WIN32_PLATFORM_PSPC)  #if defined(WIN32_PLATFORM_PSPC)
         {"pbindcur", INITYPE_UINT8,             &np2oscfg.bindcur,              0},          {"pbindcur", INITYPE_UINT8,             &np2oscfg.bindcur,              0},
         {"pbindbtn", INITYPE_UINT8,             &np2oscfg.bindbtn,              0},          {"pbindbtn", INITYPE_UINT8,             &np2oscfg.bindbtn,              0},
 #endif  #endif
           {"jast_snd", INITYPE_BOOL,              &np2oscfg.jastsnd,              0},             // ver0.73
 };  };
   
   

Removed from v.1.5  
changed lines
  Added in v.1.14


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