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

Collapse All | Expand All

(-)gemrb/plugins/Core/VFS.cpp (-2 / +10 lines)
Lines 360-365 void ResolveFilePath(char* FilePath) Link Here
360
	char TempFileName[_MAX_PATH];
360
	char TempFileName[_MAX_PATH];
361
	int j, pos;
361
	int j, pos;
362
362
363
	if (FilePath[0]=='~') {
364
		const char *home = getenv("HOME");
365
		if (home) {
366
			PathJoin(TempFilePath, home, FilePath+1, NULL);
367
			strncpy(FilePath, TempFilePath, _MAX_PATH);
368
		}
369
	}
370
363
	if (core && !core->CaseSensitive) {
371
	if (core && !core->CaseSensitive) {
364
		return;
372
		return;
365
	}
373
	}
Lines 388-395 void ResolveFilePath(char* FilePath) Link Here
388
			}
396
			}
389
		}
397
		}
390
	}
398
	}
391
	//should work (same size)
399
	//should work (same or less size)
392
	strcpy( FilePath, TempFilePath );
400
	strncpy( FilePath, TempFilePath, _MAX_PATH );
393
}
401
}
394
402
395
#endif
403
#endif
(-)gemrb/plugins/Core/Interface.cpp (+4 lines)
Lines 2026-2031 bool Interface::LoadConfig(const char* f Link Here
2026
		strcat( PluginsPath, SPathDelimiter );
2026
		strcat( PluginsPath, SPathDelimiter );
2027
	}
2027
	}
2028
	FixPath(GemRBPath, true);
2028
	FixPath(GemRBPath, true);
2029
	FixPath(SavePath, false);
2030
	mkdir( SavePath, S_IREAD|S_IWRITE|S_IEXEC );
2031
	chmod( SavePath, S_IREAD|S_IWRITE|S_IEXEC );
2032
	FixPath(SavePath, true);
2029
	FixPath(CachePath, true);
2033
	FixPath(CachePath, true);
2030
	if (GUIScriptsPath[0]) {
2034
	if (GUIScriptsPath[0]) {
2031
		FixPath(GUIScriptsPath, true);
2035
		FixPath(GUIScriptsPath, true);

Return to bug 158336