Skip to content

Commit df5d814

Browse files
committed
include option to use latest as guess
1 parent 1a645a5 commit df5d814

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

src/main.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -869,7 +869,7 @@ fn main() {
869869
//use the latest version of OpenCore as a guess if there have been no changes to the
870870
//config.plist, this makes the assumption that the user wants to keep the OpenCore
871871
//version current, they can always use a Manifest or manually use an older version
872-
if first_diff {
872+
if first_diff && resources.octool_config["use_latest_oc_on_guess"].as_bool().unwrap_or(true) {
873873
setup.oc_build_version = resources.dortania["OpenCorePkg"]["versions"][0]
874874
["version"]
875875
.as_str()

tool_config_files/dyn_res_list.zip

2 Bytes
Binary file not shown.

tool_config_files/octool_config.json

+3
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@
3434
"//comm_clob_local": "replace local res list with updated list when octool is run",
3535
"clobber_local_dyn_res_list": true,
3636

37+
"//comm_use_latest": "use latest version of OpenCore that fits the format of the config.plist being used",
38+
"use_latest_oc_on_guess": true,
39+
3740
"//comm_build": "set use of either 'X64' or 'IA32' build architecture",
3841
"build_architecture": "X64",
3942

0 commit comments

Comments
 (0)