diff options
author | aliaspider | 2015-09-02 18:13:19 +0100 |
---|---|---|
committer | aliaspider | 2015-09-02 18:13:19 +0100 |
commit | aa877f6aa5366a08c8b64d3e5f0abf683598087a (patch) | |
tree | 70b4da5cd2c31fe9cc7ae5fd03faf4186e7d2667 /source/spc7110.c | |
parent | d86b88be54fdcf628d6d22614a6358de99c24ead (diff) | |
parent | 3ab8a937f52ee7a6599b61b0b5f782d5a0a56c9a (diff) | |
download | snes9x2005-aa877f6aa5366a08c8b64d3e5f0abf683598087a.tar.gz snes9x2005-aa877f6aa5366a08c8b64d3e5f0abf683598087a.tar.bz2 snes9x2005-aa877f6aa5366a08c8b64d3e5f0abf683598087a.zip |
Merge pull request #6 from xerpi/master
(Vita) Fix build (chdir and getcwd)
Diffstat (limited to 'source/spc7110.c')
-rw-r--r-- | source/spc7110.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/source/spc7110.c b/source/spc7110.c index c6de135..044d1f9 100644 --- a/source/spc7110.c +++ b/source/spc7110.c @@ -1707,13 +1707,13 @@ void SPC7110Load(char* dirname) decompack = (Pack7110*)malloc(sizeof(Pack7110)); -#ifndef _XBOX +#if !defined(_XBOX) && !defined(VITA) getcwd(temp_path, PATH_MAX); #endif memset(decompack, 0, sizeof(Pack7110)); -#ifndef _XBOX +#if !defined(_XBOX) && !defined(VITA) if (-1 == chdir(dirname)) S9xMessage(0, 0, "Graphics Pack not found!"); #endif @@ -1747,7 +1747,7 @@ void SPC7110Load(char* dirname) } } -#ifndef _XBOX +#if !defined(_XBOX) && !defined(VITA) chdir(temp_path); #endif @@ -1764,13 +1764,13 @@ void SPC7110Open(char* dirname) decompack = (Pack7110*)malloc(sizeof(Pack7110)); -#ifndef _XBOX +#if !defined(_XBOX) && !defined(VITA) getcwd(temp_path, PATH_MAX); #endif memset(decompack, 0, sizeof(Pack7110)); -#ifndef _XBOX +#if !defined(_XBOX) && !defined(VITA) if (-1 == chdir(dirname)) S9xMessage(0, 0, "Graphics Pack not found!"); #endif @@ -1787,7 +1787,7 @@ void SPC7110Open(char* dirname) ReadPackData(); -#ifndef _XBOX +#if !defined(_XBOX) && !defined(VITA) chdir(temp_path); #endif @@ -1804,14 +1804,14 @@ void SPC7110Grab(char* dirname) decompack = (Pack7110*)malloc(sizeof(Pack7110)); -#ifndef _XBOX +#if !defined(_XBOX) && !defined(VITA) getcwd(temp_path, PATH_MAX); #endif int32_t buffer_size = 1024 * 1024 * cacheMegs; //*some setting memset(decompack, 0, sizeof(Pack7110)); -#ifndef _XBOX +#if !defined(_XBOX) && !defined(VITA) if (-1 == chdir(dirname)) S9xMessage(0, 0, "Graphics Pack not found!"); @@ -1861,7 +1861,7 @@ void SPC7110Grab(char* dirname) } } -#ifndef _XBOX +#if !defined(_XBOX) && !defined(VITA) chdir(temp_path); #endif |