From 3a0f1763fb8b558640a13bb0dc7c36648d3b6aee Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Sat, 13 May 2023 19:39:49 +0300 Subject: [PATCH] engine: whereami: update from our downstream fork (only cosmetic changes) --- engine/common/whereami.c | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/engine/common/whereami.c b/engine/common/whereami.c index 7581ac51..1d79c72a 100644 --- a/engine/common/whereami.c +++ b/engine/common/whereami.c @@ -795,9 +795,9 @@ int WAI_PREFIX(getModulePath)(char* out, int capacity, int* dirname_length) return length; } -#elif defined(__sgi) || defined(__SWITCH__) || defined(__vita__) +#elif defined(__sgi) -/* +/* * These functions are stubbed for now to get the code compiling. * In the future it may be possible to get these working in some way. * Current ideas are checking the working directory for a binary with @@ -813,13 +813,29 @@ int WAI_PREFIX(getModulePath)(char* out, int capacity, int* dirname_length) WAI_FUNCSPEC int WAI_PREFIX(getExecutablePath)(char* out, int capacity, int* dirname_length) { - return -1; + return -1; } WAI_FUNCSPEC int WAI_PREFIX(getModulePath)(char* out, int capacity, int* dirname_length) { - return -1; + return -1; +} + +#elif defined(__SWITCH__) || defined(__vita__) + +/* Not possible on this platform */ + +WAI_FUNCSPEC +int WAI_PREFIX(getExecutablePath)(char* out, int capacity, int* dirname_length) +{ + return -1; +} + +WAI_FUNCSPEC +int WAI_PREFIX(getModulePath)(char* out, int capacity, int* dirname_length) +{ + return -1; } #else