X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=nucleus%2Flibrary%2Fversions%2Fversion_checker.cpp;h=98a77c802a5052494839a6295f8e501f43fbd121;hb=675cd8a76e7c453f7f8470ab78ea94a90990eec9;hp=24d06b69dbb78e77baf6125aeedf072e969464c8;hpb=3ea085ec301ed1399dfa1e9f3a240312dc95410b;p=feisty_meow.git diff --git a/nucleus/library/versions/version_checker.cpp b/nucleus/library/versions/version_checker.cpp index 24d06b69..98a77c80 100644 --- a/nucleus/library/versions/version_checker.cpp +++ b/nucleus/library/versions/version_checker.cpp @@ -80,7 +80,7 @@ astring version_checker::text_form() const bool version_checker::good_version() const { - astring version_disabler = environment::get("TMP"); + astring version_disabler = environment::TMP(); version_disabler += "/no_version_check.txt"; FILE *always_okay = fopen(version_disabler.s(), "r"); if (always_okay) { @@ -111,7 +111,7 @@ void *version_checker::get_handle(const astring &library_file_name) return GetModuleHandle(to_unicode_temp(library_file_name)); #else //hmmm: there really isn't this concept on OSes that i'm aware of. - return 0 && library_file_name.t(); + if (library_file_name.t()) return NIL; else return NIL; #endif } @@ -129,7 +129,7 @@ astring version_checker::module_name(const void *module_handle) return buff; #else #pragma message("module_name unknown for this operating system.") - return application_name(); + return application_configuration::application_name(); #endif }