mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-02-18 13:54:16 +01:00
[dxvk] Load user config as well as per-app options in DxvkInstance
This commit is contained in:
parent
5e58083c01
commit
c0398caa2b
@ -11,6 +11,9 @@ namespace dxvk {
|
||||
Logger::info(str::format("Game: ", env::getExeName()));
|
||||
Logger::info(str::format("DXVK: ", DXVK_VERSION));
|
||||
|
||||
m_config = getUserConfig();
|
||||
m_config.merge(getAppConfig(env::getExeName()));
|
||||
|
||||
g_vrInstance.initInstanceExtensions();
|
||||
|
||||
m_vkl = new vk::LibraryFn();
|
||||
|
@ -1,5 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
#include "../util/config/config_user.h"
|
||||
|
||||
#include "dxvk_adapter.h"
|
||||
#include "dxvk_device.h"
|
||||
#include "dxvk_openvr.h"
|
||||
@ -45,8 +47,21 @@ namespace dxvk {
|
||||
Rc<DxvkAdapter> enumAdapters(
|
||||
uint32_t index) const;
|
||||
|
||||
private:
|
||||
/**
|
||||
* \brief Retrieves configuration options
|
||||
*
|
||||
* The configuration set contains user-defined
|
||||
* options as well as app-specific options.
|
||||
* \returns Configuration options
|
||||
*/
|
||||
const Config& config() const {
|
||||
return m_config;
|
||||
}
|
||||
|
||||
private:
|
||||
|
||||
Config m_config;
|
||||
|
||||
Rc<vk::LibraryFn> m_vkl;
|
||||
Rc<vk::InstanceFn> m_vki;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user