Ignore:
Timestamp:
Oct 15, 2001, 7:10:55 PM (24 years ago)
Author:
sandervl
Message:

custom build update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kernel32/directory.cpp

    r6511 r7063  
    1 /* $Id: directory.cpp,v 1.39 2001-08-10 19:32:26 sandervl Exp $ */
     1/* $Id: directory.cpp,v 1.40 2001-10-15 17:10:54 sandervl Exp $ */
    22
    33/*
     
    5353static char DIR_Windows[MAX_PATHNAME_LEN];
    5454static char DIR_System[MAX_PATHNAME_LEN];
     55static BOOL fDirInit = FALSE;
    5556
    5657//******************************************************************************
     
    7374 int   len;
    7475
     76   if(fDirInit == TRUE) return;
     77
     78   fDirInit = TRUE;
    7579   strcpy(DIR_System, kernel32Path);
    7680   len = strlen(DIR_System);
     
    100104   dprintf(("System32 dir: %s", DIR_System));
    101105}
     106//*****************************************************************************
     107//*****************************************************************************
     108void InitDirectoriesCustom(char *szSystemDir, char *szWindowsDir)
     109{
     110   int len;
     111
     112   if(fDirInit == TRUE) return;
     113   fDirInit = TRUE;
     114
     115   strcpy(DIR_System, szSystemDir);
     116   len = strlen(DIR_System);
     117   if(DIR_System[len-1] == '\\') {
     118        DIR_System[len-1] = 0;
     119   }
     120   strcpy(DIR_Windows, szWindowsDir);
     121   len = strlen(DIR_Windows);
     122   if(DIR_Windows[len-1] == '\\') {
     123        DIR_Windows[len-1] = 0;
     124   }
     125
     126   dprintf(("Windows  dir: %s", DIR_Windows));
     127   dprintf(("System32 dir: %s", DIR_System));
     128}
    102129/*****************************************************************************
    103130 * Name      : GetCurrentDirectoryA
Note: See TracChangeset for help on using the changeset viewer.