possibly working Win32 build; make -j broken again (see no good way to force version.h making before everything else, my old way made make rebuild everything every time)
git-svn-id: svn://svn.icculus.org/netradiant/trunk@51 61c419a2-8eb2-4b30-bcec-8cead039b335
This commit is contained in:
@@ -150,18 +150,16 @@ void environment_init(int argc, char* argv[])
|
||||
#elif defined(WIN32)
|
||||
|
||||
#include <windows.h>
|
||||
#include <shfolder.h>
|
||||
|
||||
void environment_init(int argc, char* argv[])
|
||||
{
|
||||
args_init(argc, argv);
|
||||
|
||||
{
|
||||
char appdata[MAX_PATH+1];
|
||||
SHGetFolderPath(0, CSIDL_APPDATA, 0, 0, appdata);
|
||||
char *appdata = getenv("APPDATA");
|
||||
|
||||
StringOutputStream home(256);
|
||||
if(string_empty(appdata))
|
||||
if(!appdata || string_empty(appdata))
|
||||
{
|
||||
ERROR_MESSAGE("Application Data folder not available.\n"
|
||||
"Please install shfolder redistributable package.\n"
|
||||
|
||||
Reference in New Issue
Block a user