filename = M_StringJoin(dir, DIR_SEPARATOR_S, iwadname, NULL);
}
+ printf("Trying IWAD file:%s\n", filename);
+
if (M_FileExists(filename))
{
return filename;
#endif
#else
- AddIWADDir(".");
-
AddIWADDir (FILES_DIR);
// Don't run this function again.
{
// Search through the list and look for an IWAD
+ printf("-iwad not specified, trying a few iwad names\n");
+
result = NULL;
BuildIWADDirList();
static char *GetDefaultConfigDir(void)
{
-#if !defined(_WIN32) || defined(_WIN32_WCE)
+ char *result = (char *)malloc(2);
+ result[0] = '.';
+ result[1] = '\0';
- // Configuration settings are stored in ~/.chocolate-doom/,
- // except on Windows, where we behave like Vanilla Doom and
- // save in the current directory.
-
- char *homedir;
- char *result;
-
- // frosted HACK - homedir = getenv("HOME");
- homedir = "/mnt";
-
- if (homedir != NULL)
- {
- // put all configuration in a config directory off the
- // homedir
-
- result = M_StringJoin(homedir, DIR_SEPARATOR_S,
- "." PACKAGE_TARNAME, DIR_SEPARATOR_S, NULL);
-
- return result;
- }
- else
-#endif /* #ifndef _WIN32 */
- {
- return strdup(FILES_DIR"/");
- }
+ return result;
}
//