Skip to content

Commit

Permalink
Fixed incorrect revision reporting on T2 models (e.g. Macmini8,1)
Browse files Browse the repository at this point in the history
  • Loading branch information
vit9696 committed May 9, 2020
1 parent 2d0436a commit ba08a62
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
3 changes: 3 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
VirtualSMC Changelog
====================
#### v1.1.4
- Fixed incorrect revision reporting on T2 models (e.g. Macmini8,1)

#### v1.1.3
- Fixed compatibility with 10.15 debug kernel with traptrace enabled

Expand Down
6 changes: 3 additions & 3 deletions VirtualSMC.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -1461,7 +1461,7 @@
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
MACOSX_DEPLOYMENT_TARGET = 10.8;
MODULE_VERSION = 1.1.3;
MODULE_VERSION = 1.1.4;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = macosx;
VALID_ARCHS = x86_64;
Expand Down Expand Up @@ -1509,7 +1509,7 @@
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
MACOSX_DEPLOYMENT_TARGET = 10.8;
MODULE_VERSION = 1.1.3;
MODULE_VERSION = 1.1.4;
SDKROOT = macosx;
SWIFT_COMPILATION_MODE = wholemodule;
VALID_ARCHS = x86_64;
Expand Down Expand Up @@ -2125,7 +2125,7 @@
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
MACOSX_DEPLOYMENT_TARGET = 10.8;
MODULE_VERSION = 1.1.3;
MODULE_VERSION = 1.1.4;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = macosx;
VALID_ARCHS = x86_64;
Expand Down
6 changes: 3 additions & 3 deletions VirtualSMC/kern_vsmc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -301,12 +301,12 @@ bool VirtualSMC::obtainModelInfo(SMCInfo &deviceInfo, const char *boardIdentifie
if (gen != SMCInfo::Generation::Unspecified) {
if (gen == SMCInfo::Generation::V1)
generic = "GenericV1";
else if (gen == SMCInfo::Generation::V2)
else if (gen == SMCInfo::Generation::V3)
generic = "GenericV3";
} else if (deviceInfo.getGeneration() == SMCInfo::Generation::V1) {
generic = "GenericV3";
} else if (deviceInfo.getGeneration() == SMCInfo::Generation::V3) {
generic = "GenericV1";
} else if (deviceInfo.getGeneration() == SMCInfo::Generation::V3) {
generic = "GenericV3";
}

doObtain(generic, true);
Expand Down

0 comments on commit ba08a62

Please sign in to comment.