Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 420783 | Differences between
and this patch

Collapse All | Expand All

(-)a/code/qcommon/qcommon.h (-1 lines)
Lines 1120-1126 char *Sys_DefaultAppPath(void); Link Here
1120
1120
1121
void  Sys_SetDefaultHomePath(const char *path);
1121
void  Sys_SetDefaultHomePath(const char *path);
1122
char	*Sys_DefaultHomePath(void);
1122
char	*Sys_DefaultHomePath(void);
1123
const char	*Sys_TempPath(void);
1124
const char *Sys_Dirname( char *path );
1123
const char *Sys_Dirname( char *path );
1125
const char *Sys_Basename( char *path );
1124
const char *Sys_Basename( char *path );
1126
char *Sys_ConsoleInput(void);
1125
char *Sys_ConsoleInput(void);
(-)a/code/sys/sys_osx.m (-22 lines)
Lines 35-62 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA Link Here
35
#import <Cocoa/Cocoa.h>
35
#import <Cocoa/Cocoa.h>
36
36
37
/*
37
/*
38
================
39
Sys_TempPath
40
================
41
*/
42
const char *Sys_TempPath( void )
43
{
44
	static UInt8 posixPath[ MAX_OSPATH ];
45
	FSRef ref;
46
	if( FSFindFolder( kOnAppropriateDisk,
47
				kTemporaryFolderType, kCreateFolder, &ref ) == noErr )
48
	{
49
		if( FSRefMakePath( &ref, posixPath,
50
					sizeof( posixPath ) - 1 ) == noErr )
51
		{
52
			return (const char *)posixPath;
53
		}
54
	}
55
56
	return "/tmp";
57
}
58
59
/*
60
==============
38
==============
61
Sys_Dialog
39
Sys_Dialog
62
40
(-)a/code/sys/sys_unix.c (-17 lines)
Lines 78-100 char *Sys_DefaultHomePath(void) Link Here
78
	return homePath;
78
	return homePath;
79
}
79
}
80
80
81
#ifndef MACOS_X
82
/*
83
================
84
Sys_TempPath
85
================
86
*/
87
const char *Sys_TempPath( void )
88
{
89
	const char *TMPDIR = getenv( "TMPDIR" );
90
91
	if( TMPDIR == NULL || TMPDIR[ 0 ] == '\0' )
92
		return "/tmp";
93
	else
94
		return TMPDIR;
95
}
96
#endif
97
98
/*
81
/*
99
================
82
================
100
Sys_Milliseconds
83
Sys_Milliseconds
(-)a/code/sys/sys_win32.c (-19 lines)
Lines 129-152 char *Sys_DefaultHomePath( void ) Link Here
129
129
130
/*
130
/*
131
================
131
================
132
Sys_TempPath
133
================
134
*/
135
const char *Sys_TempPath( void )
136
{
137
	static TCHAR path[ MAX_PATH ];
138
	DWORD length;
139
140
	length = GetTempPath( sizeof( path ), path );
141
142
	if( length > sizeof( path ) || length == 0 )
143
		return Sys_DefaultHomePath( );
144
	else
145
		return path;
146
}
147
148
/*
149
================
150
Sys_Milliseconds
132
Sys_Milliseconds
151
================
133
================
152
*/
134
*/
153
- 

Return to bug 420783