paragui-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[paragui-cvs] CVS: paragui/src/physfs/platform win32.c,1.1.1.1.6.2,1.1.1


From: Alexander Pipelka <address@hidden>
Subject: [paragui-cvs] CVS: paragui/src/physfs/platform win32.c,1.1.1.1.6.2,1.1.1.1.6.3
Date: Thu, 30 May 2002 09:54:51 -0400

Update of /cvsroot/paragui/paragui/src/physfs/platform
In directory subversions:/tmp/cvs-serv30393/src/physfs/platform

Modified Files:
      Tag: devel-1-0
        win32.c 
Log Message:
added functions to add callback handlers to existing menu items
Thanks John Rainey <address@hidden>


Index: win32.c
===================================================================
RCS file: /cvsroot/paragui/paragui/src/physfs/platform/win32.c,v
retrieving revision 1.1.1.1.6.2
retrieving revision 1.1.1.1.6.3
diff -C2 -r1.1.1.1.6.2 -r1.1.1.1.6.3
*** win32.c     29 May 2002 15:34:09 -0000      1.1.1.1.6.2
--- win32.c     30 May 2002 13:54:47 -0000      1.1.1.1.6.3
***************
*** 164,175 ****
  char *__PHYSFS_platformGetUserDir(void)
  {
!     char *home = copyEnvironmentVariable("HOME");
      const char *homedrive = getenv("HOMEDRIVE");
      const char *homepath = getenv("HOMEPATH");
  
!       if(getenv("USERPROFILE") != NULL) {
!               home = copyEnvironmentVariable("USERPROFILE");
!               return home;
!       }
  
      if (home != NULL)
--- 164,177 ----
  char *__PHYSFS_platformGetUserDir(void)
  {
!     char *home = NULL;
      const char *homedrive = getenv("HOMEDRIVE");
      const char *homepath = getenv("HOMEPATH");
  
!     if(getenv("USERPROFILE") != NULL) {
!       home = copyEnvironmentVariable("USERPROFILE");
!       return home;
!     }
! 
!     char *home = copyEnvironmentVariable("HOME");
  
      if (home != NULL)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]