diff options
author | 2016-11-12 09:42:25 +0100 | |
---|---|---|
committer | 2016-11-12 09:42:25 +0100 | |
commit | b9a6f57494128e61d5458f878eb7ea86b7085b1a (patch) | |
tree | 5732ae168dae893228ce453cbf3539d65c6b9466 | |
parent | 6b18f9043848ad031373df174609b3b3e0e28be3 (diff) |
UWP, added support to store files on Local storage (nw)
-rw-r--r-- | src/osd/windows/winmain.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/osd/windows/winmain.cpp b/src/osd/windows/winmain.cpp index 22283f89ebf..bf34e35b40f 100644 --- a/src/osd/windows/winmain.cpp +++ b/src/osd/windows/winmain.cpp @@ -36,6 +36,9 @@ #include "modules/monitor/monitor_common.h" #if !WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) +#include <wrl/client.h> +using namespace Windows::Storage; +using namespace Platform; using namespace Windows::ApplicationModel; using namespace Windows::ApplicationModel::Core; using namespace Windows::UI::Popups; @@ -425,6 +428,19 @@ windows_options::windows_options() : osd_options() { add_entries(s_option_entries); +#if !WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) + String^ path = ApplicationData::Current->LocalFolder->Path + L"\\"; + set_default_value(OPTION_INIPATH, (osd::text::from_wstring((LPCWSTR)path->Data()) + ";" + ini_path()).c_str()); + set_default_value(OPTION_CFG_DIRECTORY, (osd::text::from_wstring((LPCWSTR)path->Data()) + cfg_directory()).c_str()); + set_default_value(OPTION_NVRAM_DIRECTORY, (osd::text::from_wstring((LPCWSTR)path->Data()) + nvram_directory()).c_str()); + set_default_value(OPTION_INPUT_DIRECTORY, (osd::text::from_wstring((LPCWSTR)path->Data()) + input_directory()).c_str()); + set_default_value(OPTION_STATE_DIRECTORY, (osd::text::from_wstring((LPCWSTR)path->Data()) + state_directory()).c_str()); + set_default_value(OPTION_SNAPSHOT_DIRECTORY, (osd::text::from_wstring((LPCWSTR)path->Data()) + snapshot_directory()).c_str()); + set_default_value(OPTION_DIFF_DIRECTORY, (osd::text::from_wstring((LPCWSTR)path->Data()) + diff_directory()).c_str()); + set_default_value(OPTION_COMMENT_DIRECTORY, (osd::text::from_wstring((LPCWSTR)path->Data()) + comment_directory()).c_str()); + + set_default_value(OPTION_MEDIAPATH, (osd::text::from_wstring((LPCWSTR)path->Data()) + media_path()).c_str()); +#endif } |