File is UI/NativeApp.cpp, and the code in question is around line 267.
Here is the new code, where I added an #ifdef PANDORA
#elif !defined(_WIN32)
#ifdef PANDORA
char* config = getenv("HOME");
g_Config.memCardDirectory = std::string(config) + "/.ppsspp/";
#else
char* config = getenv("XDG_CONFIG_HOME");
if (!config) {
config = getenv("HOME");
strcat(config, "/.config");
}
g_Config.memCardDirectory = std::string(config) + "/ppsspp/";
#endif
g_Config.flash0Directory = File::GetExeDirectory() + "/flash0/";
#endif
It's strange that the old code (without the #ifdef PANDORA) crashed, but it works now.
But, as ekianjo found with earlier beta, the Nubs don't work anymore.
I have to fix that before releasing next version.