mirror of
https://github.com/xiaozhou233/JuiceAgent.git
synced 2026-12-05 21:15:56 +08:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cc1c2bff30 | ||
|
|
7352f8d872 | ||
|
|
4be6324cf3 |
No files matched your search
+1
-1
@@ -1 +1 @@
|
|||||||
VERSION = Version 3.3.2 Build 1
|
VERSION = Version 3.3.2 Build 2
|
||||||
@@ -94,7 +94,7 @@ public:
|
|||||||
|
|
||||||
if constexpr (std::is_same_v<T, std::string>) {
|
if constexpr (std::is_same_v<T, std::string>) {
|
||||||
if (value.empty()) {
|
if (value.empty()) {
|
||||||
return default_value;
|
value = default_value;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Handle relative paths
|
// Handle relative paths
|
||||||
@@ -127,10 +127,11 @@ public:
|
|||||||
|
|
||||||
namespace Utils {
|
namespace Utils {
|
||||||
inline LoaderConfig get_loader_config(const Config& config) {
|
inline LoaderConfig get_loader_config(const Config& config) {
|
||||||
auto cfg = config.get_config().at("JuiceAgent").at("Loader");
|
|
||||||
|
|
||||||
LoaderConfig loader_config = LoaderConfig();
|
LoaderConfig loader_config = LoaderConfig();
|
||||||
loader_config.JuiceAgentNativeLibraryPath = cfg.at("JuiceAgentNativeLibraryPath").as_string();
|
loader_config.JuiceAgentNativeLibraryPath = config.get<std::string>("JuiceAgent.Loader.JuiceAgentNativeLibraryPath",
|
||||||
|
(config.runtime_dir()/"libagent.dll").string(),
|
||||||
|
true);
|
||||||
loader_config.RuntimeDir = config.runtime_dir().string();
|
loader_config.RuntimeDir = config.runtime_dir().string();
|
||||||
|
|
||||||
return loader_config;
|
return loader_config;
|
||||||
|
|||||||
Reference in new issue
Block a user