git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@507 c06c8d41-db1a-0410-9941-cceddc491573
RM4LRL6W56XHFWFZIA6LQLR6TPAHVSSXBVCNYZJIZSBPKFWDAJJQC
RPOZZWKG5GLPHVZZ7ZKMKS64ZMV2LDCQSARBJFJ6FZOTOKCQO7FAC
K2CS6TCX2NDVL2ASEHGP4J4K4IJ6FP3ANNKTSIWVG43HPYSBX6ZQC
SDLKLUNFGVKDS55DDJZCBAVIB7NL3RRYPTACAY65SCUQKV6APFSAC
const std::string directory = get_savedir();
basename.c_str() );
basename.c_str(), directory.c_str() );
cprintf( EOL "Warning: Zip command (LOAD_UNPACKAGE_CMD) returned non-zero value!" EOL );
cprintf( EOL "Warning: Zip command (LOAD_UNPACKAGE_CMD) " "returned non-zero value!" EOL );
cprintf( EOL "Warning: Zip command (LOAD_UNPACKAGE_CMD) "
"returned non-zero value!" EOL );
std::string get_savedir();
std::string zipname = get_savedir_path(basename);
const std::string zipname = get_savedir_path(basename);
const std::string dir = get_savedir();
dir.c_str(),
}std::string get_savedir(){ const std::string &dir = Options.save_dir; return (dir.empty()? "." : dir);
}
std::string get_savedir()
{
const std::string &dir = Options.save_dir;
return (dir.empty()? "." : dir);
result += '.'; result += extension;
result += '.';
result += extension;
DO_CHMOD_PRIVATE(stashFile.c_str());
DO_CHMOD_PRIVATE(killFile.c_str());
DO_CHMOD_PRIVATE(travelCacheFile.c_str());
save_notes(notesf);
DO_CHMOD_PRIVATE(notesFile.c_str());
snprintf(info, INFO_SIZE, "Unable to open \"%s\" for writing!\n",
perror(info); end(-1);
perror(info);
end(-1);
snprintf(info, INFO_SIZE, "Unable to open %s for reading!\n", charFile.c_str() );
snprintf(info, INFO_SIZE, "Unable to open %s for reading!\n",
charFile.c_str() );
charFile.c_str());
load_notes(notesf); fclose(notesf);
load_notes(notesf);
fclose(notesf);
return (MS_LEVEL_SUMMON); /* approximate */
// the %s is the same as above.
// the %s is the same as above. The second %s in LOAD_UNPACKAGE_CMD // is for the output directory.
// the %s is the same as above. The second %s in LOAD_UNPACKAGE_CMD
// is for the output directory.
#ifdef SAVE_DIR_PATH #define LOAD_UNPACKAGE_CMD "/usr/bin/unzip -q -o %s.zip -d" SAVE_DIR_PATH#else #define LOAD_UNPACKAGE_CMD "/usr/bin/unzip -q -o %s.zip"#endif
#ifdef SAVE_DIR_PATH
#define LOAD_UNPACKAGE_CMD "/usr/bin/unzip -q -o %s.zip -d" SAVE_DIR_PATH
#else
#define LOAD_UNPACKAGE_CMD "/usr/bin/unzip -q -o %s.zip"
#endif
#define LOAD_UNPACKAGE_CMD "/usr/bin/unzip -q -o %s.zip -d %s"