X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=nucleus%2Flibrary%2Fapplication%2Fwindoze_helper.cpp;h=a78392c9f0f7f4a5e5c5cdfb178dcf6bed712907;hb=5a8e13e7a44ed98d9683bc6cd3bb374e9d3b0756;hp=85c30488d844dfcd75cdaad66831e2fcd5896f9d;hpb=f2cd4d9e0a4c8a6594ce9c438ed7c71cdae6e558;p=feisty_meow.git diff --git a/nucleus/library/application/windoze_helper.cpp b/nucleus/library/application/windoze_helper.cpp index 85c30488..a78392c9 100644 --- a/nucleus/library/application/windoze_helper.cpp +++ b/nucleus/library/application/windoze_helper.cpp @@ -13,15 +13,8 @@ \*****************************************************************************/ #include "windoze_helper.h" -///#include "array.h" -///#include "build_configuration.h" -///#include "convert_utf.h" -///#include "function.h" -///#include "mutex.h" -///#include "portable.h" -///#include "set.h" -///#include "version_record.h" #include +#include ///#include ///#include @@ -50,12 +43,15 @@ */ using namespace basis; +using namespace loggers; using namespace structures; using namespace configuration; #undef static_class_name #define static_class_name() "windoze_helper" +#define LOG(s) CLASS_EMERGENCY_LOG(program_wide_logger::get(), s) + /* //#define DEBUG_PORTABLE // uncomment for noisy debugging. @@ -836,13 +832,16 @@ const char *opsystem_name(known_operating_systems which) case WIN_XP: return "WIN_XP"; case WIN_SRV2K3: return "WIN_SRV2K3"; case WIN_VISTA: return "WIN_VISTA"; - case WIN_SRV2K8: return "WIN_SRV2K8"; + case WIN_7: return "WIN_7"; + case WIN_8: return "WIN_8"; + case WIN_10: return "WIN_10"; default: return "UNKNOWN_OS"; } } known_operating_systems determine_OS() { + FUNCDEF("determine_OS"); version osver = application_configuration::get_OS_version(); if ( (osver.v_major() == 4) && (osver.v_minor() == 0) ) { if (osver.v_revision() == VER_PLATFORM_WIN32_WINDOWS) return WIN_95; @@ -855,9 +854,19 @@ known_operating_systems determine_OS() return WIN_SRV2K3; } else if ( (osver.v_major() == 6) && (osver.v_minor() == 0) ) { return WIN_VISTA; +// } else if ( (osver.v_major() == 6) && (osver.v_minor() == 1) ) { +// return WIN_SRV2K8; } else if ( (osver.v_major() == 6) && (osver.v_minor() == 1) ) { - return WIN_SRV2K8; + return WIN_7; + } else if ( (osver.v_major() == 6) && (osver.v_minor() == 2) ) { + return WIN_8; + } else if ( (osver.v_major() == 10) && (osver.v_minor() == 0) ) { + return WIN_10; } + +//temp +LOG(a_sprintf("got a major OS of %d and minor OS of %d", osver.v_major(), osver.v_minor())); + return UNKNOWN_OS; }