/[winpt]/trunk/Src/WinPT.cpp
ViewVC logotype

Diff of /trunk/Src/WinPT.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 273 by twoaday, Fri Dec 8 10:22:17 2006 UTC revision 278 by twoaday, Mon Jan 15 22:02:04 2007 UTC
# Line 12  Line 12 
12   * but WITHOUT ANY WARRANTY; without even the implied warranty of   * but WITHOUT ANY WARRANTY; without even the implied warranty of
13   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14   * GNU General Public License for more details.   * GNU General Public License for more details.
  *  
  * You should have received a copy of the GNU General Public License  
  * along with WinPT; if not, write to the Free Software Foundation,  
  * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA  
15   */   */
16  #ifdef HAVE_CONFIG_H  #ifdef HAVE_CONFIG_H
17  #include <config.h>  #include <config.h>
# Line 107  load_gettext (void) Line 103  load_gettext (void)
103      /* Return the name of the gettext language file. */      /* Return the name of the gettext language file. */
104      nls = get_reg_entry_mo ();      nls = get_reg_entry_mo ();
105      if (nls != NULL) {      if (nls != NULL) {
106          set_gettext_file ("winpt", nls);          gettext_set_file ("winpt", nls);
107          free_if_alloc (nls);          free_if_alloc (nls);
108      }      }
109  }  }
# Line 300  check_crypto_engine (void) Line 296  check_crypto_engine (void)
296      }      }
297      else if (rc) {      else if (rc) {
298          log_box (_("WinPT Error"), MB_ERR,          log_box (_("WinPT Error"), MB_ERR,
299                   _("Sorry, you need a newer GPG version.\n"                   _("A newer GPG version is needed.\n"
300                     "GPG version %d.%d.%d required GPG version "NEED_GPG_VERSION),                     "Current GPG version %d.%d.%d, required "NEED_GPG_VERSION),
301                     ma, mi, pa);                     ma, mi, pa);
302          return false;          return false;
303      }      }
# Line 528  WinMain (HINSTANCE hinst, HINSTANCE hpre Line 524  WinMain (HINSTANCE hinst, HINSTANCE hpre
524          return 0;          return 0;
525      }      }
526    
527      #ifdef _DEBUG  #ifdef _DEBUG
528      gpg_set_debug_mode (1);      gpg_set_debug_mode (1);
529      debug = 1;      debug = 1;
530      #endif  #endif
531    
532      get_file_version ("WinPT.exe", &ver[0], &ver[1], &ver[2], &ver[3]);      get_file_version ("WinPT.exe", &ver[0], &ver[1], &ver[2], &ver[3]);
533      ec = get_file_version ("PTD.dll", &ptdver[0], &ptdver[1],        ec = get_file_version ("PTD.dll", &ptdver[0], &ptdver[1],  
# Line 691  WinMain (HINSTANCE hinst, HINSTANCE hpre Line 687  WinMain (HINSTANCE hinst, HINSTANCE hpre
687          return 0;          return 0;
688      }      }
689    
690      #ifndef WINPT_MOBILE  #ifndef WINPT_MOBILE
691      if (cmdline && (stristr (cmdline, "--enable-debug") ||      if (cmdline && (stristr (cmdline, "--enable-debug") ||
692                      stristr (cmdline, "--debug"))) {                      stristr (cmdline, "--debug"))) {
693          gpg_set_debug_mode (1);          gpg_set_debug_mode (1);
694          winpt_debug_msg ();          winpt_debug_msg ();
695          debug = 1;          debug = 1;
696      }      }
697      #endif  #endif
698    
699      wc.hIcon = LoadIcon (glob_hinst, MAKEINTRESOURCE (IDI_WINPT));      wc.hIcon = LoadIcon (glob_hinst, MAKEINTRESOURCE (IDI_WINPT));
700      rc = RegisterClass (&wc);      rc = RegisterClass (&wc);

Legend:
Removed from v.273  
changed lines
  Added in v.278

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26