Skip to content

Commit

Permalink
Fix version publishing for VirtualSMC
Browse files Browse the repository at this point in the history
  • Loading branch information
vit9696 committed Feb 24, 2021
1 parent 1206678 commit d44d1f3
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 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.2.1
- Fix version publishing for VirtualSMC

#### v1.2.0
- Improve manual fan control in SMCDellSensors (switch off manual control before going to sleep), rename control boot-args (start with -dell)

Expand Down
6 changes: 3 additions & 3 deletions VirtualSMC.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -1570,7 +1570,7 @@
KERNEL_EXTENSION_HEADER_SEARCH_PATHS = "$(PROJECT_DIR)/MacKernelSDK/Headers";
KERNEL_FRAMEWORK_HEADERS = "$(PROJECT_DIR)/MacKernelSDK/Headers";
MACOSX_DEPLOYMENT_TARGET = 10.8;
MODULE_VERSION = 1.2.0;
MODULE_VERSION = 1.2.1;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = macosx;
VALID_ARCHS = x86_64;
Expand Down Expand Up @@ -1621,7 +1621,7 @@
KERNEL_EXTENSION_HEADER_SEARCH_PATHS = "$(PROJECT_DIR)/MacKernelSDK/Headers";
KERNEL_FRAMEWORK_HEADERS = "$(PROJECT_DIR)/MacKernelSDK/Headers";
MACOSX_DEPLOYMENT_TARGET = 10.8;
MODULE_VERSION = 1.2.0;
MODULE_VERSION = 1.2.1;
SDKROOT = macosx;
SWIFT_COMPILATION_MODE = wholemodule;
VALID_ARCHS = x86_64;
Expand Down Expand Up @@ -2293,7 +2293,7 @@
KERNEL_EXTENSION_HEADER_SEARCH_PATHS = "$(PROJECT_DIR)/MacKernelSDK/Headers";
KERNEL_FRAMEWORK_HEADERS = "$(PROJECT_DIR)/MacKernelSDK/Headers";
MACOSX_DEPLOYMENT_TARGET = 10.8;
MODULE_VERSION = 1.2.0;
MODULE_VERSION = 1.2.1;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = macosx;
VALID_ARCHS = x86_64;
Expand Down
5 changes: 4 additions & 1 deletion VirtualSMC/kern_vsmc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#include <Headers/kern_devinfo.hpp>
#include <Headers/kern_iokit.hpp>
#include <Headers/kern_crypto.hpp>
#include <Headers/kern_version.hpp>
#include <Headers/plugin_start.hpp>
#include <IOKit/pwr_mgt/IOPM.h>
#include <IOKit/IODeviceTreeSupport.h>
Expand Down Expand Up @@ -124,7 +125,9 @@ bool VirtualSMC::start(IOService *provider) {
removeProperty("OverrideModelInfo");
removeProperty("Keystore");
removeProperty("UserKeystore");


setProperty("VersionInfo", kextVersion);

pmio = new SMCProtocolPMIO;
if (deviceInfo.getGeneration() >= SMCInfo::Generation::V2)
mmio = new SMCProtocolMMIO;
Expand Down

0 comments on commit d44d1f3

Please sign in to comment.