Changeset 59 for trunk/src/helpers/syssound.c
- Timestamp:
- Apr 16, 2001, 9:29:52 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/helpers/syssound.c
r21 r59 164 164 165 165 /* 166 *@@ sndQueryMmpmIniPath: 167 * writes the full path of MMPM.INI into 168 * the specified buffer (e.g. C:\MMOS2\MMPM.INI). 169 * 170 *@@added V0.9.10 (2001-04-16) [umoeller] 171 */ 172 173 VOID sndQueryMmpmIniPath(PSZ pszMMPM) // out: fully q'fied MMPM.INI 174 { 175 PSZ pszMMPMPath = getenv("MMBASE"); // V0.9.6 (2000-10-16) [umoeller] 176 if (pszMMPMPath) 177 { 178 // variable set: 179 PSZ p; 180 181 strcpy(pszMMPM, pszMMPMPath); // V0.9.7 (2000-12-17) [umoeller] 182 183 // kill semicolon if present 184 p = strchr(pszMMPM, ';'); 185 if (p) 186 *p = 0; 187 188 strcat(pszMMPM, "\\MMPM.INI"); 189 } 190 else 191 // variable not set (shouldn't happen): try boot drive 192 sprintf(pszMMPM, "%c:\\MMOS2\\MMPM.INI", doshQueryBootDrive()); 193 } 194 195 /* 166 196 *@@ sndOpenMmpmIni: 167 197 * this opens \MMOS2\MMPM.INI on the … … 183 213 HINI hini = NULLHANDLE; 184 214 185 PSZ pszMMPMPath = getenv("MMBASE"); // V0.9.6 (2000-10-16) [umoeller] 186 if (pszMMPMPath) 187 { 188 // variable set: 189 PSZ p; 190 191 strcpy(szMMPM, pszMMPMPath); // V0.9.7 (2000-12-17) [umoeller] 192 193 // kill semicolon if present 194 p = strchr(szMMPM, ';'); 195 if (p) 196 *p = 0; 197 198 strcat(szMMPM, "\\MMPM.INI"); 199 } 200 else 201 // variable not set (shouldn't happen): try boot drive 202 sprintf(szMMPM, "%c:\\MMOS2\\MMPM.INI", doshQueryBootDrive()); 215 sndQueryMmpmIniPath(szMMPM); 216 203 217 hini = PrfOpenProfile(habDesktop, szMMPM); 204 218 return (hini);
Note:
See TracChangeset
for help on using the changeset viewer.