X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=nucleus%2Fapplications%2Fbundler%2Funpacker_stub.cpp;h=87c6a7664d0ad7d823c8a295f18aed9c246722e2;hb=cf5ca14de074aaa046e8ac8b56f15513e97494d0;hp=a515d8ccb79e9786dc8c8fd74e8ce3405c3b4b51;hpb=457b128b77b5b4a0b7dd3094de543de2ce1477ad;p=feisty_meow.git diff --git a/nucleus/applications/bundler/unpacker_stub.cpp b/nucleus/applications/bundler/unpacker_stub.cpp index a515d8cc..87c6a766 100644 --- a/nucleus/applications/bundler/unpacker_stub.cpp +++ b/nucleus/applications/bundler/unpacker_stub.cpp @@ -43,7 +43,7 @@ #ifdef __UNIX__ #include #endif -#ifdef __WIN32__ +#ifdef _MSC_VER #include #include #include @@ -196,11 +196,6 @@ int unpacker_stub::execute() astring target; cmds.get_value("target", target); if (!target) { -/* no, this is wrong headed. make them supply a target if there is - * no default target provided in the bundle. - // a bogus default is provided if they don't specify the destination. - target = environment::get("TMP") + "/unbundled"; -*/ provided_target = false; } else { //LOG(astring("target is now ") + target); @@ -212,7 +207,7 @@ int unpacker_stub::execute() astring logdir = environment::get(LOGDIR_WORD); #ifdef __WIN32__ if (!logdir) { - logdir = environment::get("TMP") + "/logs"; + logdir = environment::TMP() + "/logs"; environment::set(LOGDIR_WORD, logdir); } #else @@ -451,7 +446,7 @@ int unpacker_stub::execute() } } - byte_filer *targo = NIL; + byte_filer *targo = NULL_POINTER; if (keyword_good) targo = new byte_filer(curr._payload, "wb"); byte_array uncompressed(256 * KILOBYTE); // fluff it out to begin with. byte_array temp(256 * KILOBYTE);