Don't use getenv on XBOX.

This commit is contained in:
Themaister 2012-01-05 17:27:18 +01:00
parent b168109672
commit 0b62771b54
2 changed files with 4 additions and 4 deletions

4
file.c
View File

@ -369,9 +369,9 @@ static const char *ramtype2str(int type)
// Attempt to save valuable RAM data somewhere ...
static void dump_to_file_desperate(const void *data, size_t size, int type)
{
#ifdef _WIN32
#if defined(_WIN32) && !defined(_XBOX)
const char *base = getenv("APPDATA");
#elif defined(__CELLOS_LV2__)
#elif defined(__CELLOS_LV2__) || defined(_XBOX)
const char *base = NULL;
#else
const char *base = getenv("HOME");

View File

@ -225,7 +225,7 @@ void parse_config(void)
static config_file_t *open_default_config_file(void)
{
config_file_t *conf = NULL;
#ifdef _WIN32
#if defined(_WIN32) && !defined(_XBOX)
// Just do something for now.
conf = config_file_new("ssnes.cfg");
if (!conf)
@ -250,7 +250,7 @@ static config_file_t *open_default_config_file(void)
}
if (!conf)
conf = config_file_new("/etc/ssnes.cfg");
#elif defined(__CELLOS_LV2__)
#elif defined(__CELLOS_LV2__) || defined(_XBOX)
return NULL;
#else
const char *xdg = getenv("XDG_CONFIG_HOME");