aboutsummaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorSergi Granell2015-09-02 19:09:55 +0200
committerSergi Granell2015-09-02 19:09:55 +0200
commit3ab8a937f52ee7a6599b61b0b5f782d5a0a56c9a (patch)
tree70b4da5cd2c31fe9cc7ae5fd03faf4186e7d2667 /source
parentd86b88be54fdcf628d6d22614a6358de99c24ead (diff)
downloadsnesemu-3ab8a937f52ee7a6599b61b0b5f782d5a0a56c9a.tar.gz
snesemu-3ab8a937f52ee7a6599b61b0b5f782d5a0a56c9a.tar.bz2
snesemu-3ab8a937f52ee7a6599b61b0b5f782d5a0a56c9a.zip
(Vita) Fix build (chdir and getcwd)
Diffstat (limited to 'source')
-rw-r--r--source/spc7110.c18
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