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) {
#ifdef __WIN32__
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
}
astring version_checker::module_name(const void *module_handle)
{
#ifdef __UNIX__
-//hmmm: implement module name for linux if that makes sense.
if (module_handle) {}
return application_configuration::application_name();
#elif defined(__WIN32__)
return buff;
#else
#pragma message("module_name unknown for this operating system.")
- return application_name();
+ return application_configuration::application_name();
#endif
}