medfall

A super great game engine
Log | Files | Refs

win32_home.h (295B)


      1 #pragma once
      2 
      3 #include <shlobj.h>
      4 
      5 #include "dynstr.h"
      6 
      7 inline void get_config_directory( DynamicString & path ) {
      8 	char appdata[ MAX_PATH ];
      9 	if( SHGetFolderPath( NULL, CSIDL_APPDATA, NULL, 0, appdata ) != S_OK ) {
     10 		FATAL( "can't find AppData" );
     11 	}
     12 	path.sprintf( "{}\\Medfall", appdata );
     13 }