Commit 3f5bf409 authored by captainwong's avatar captainwong

update

parent 23e38982
......@@ -55,8 +55,19 @@ struct version_no {
};
inline bool get_version_no_from_ini(version_no& ver, const std::string& ini_path) {
std::ifstream in(ini_path);
struct update_info_json {
version_no ver;
std::string change;
std::vector<std::string> dllinks;
};
struct update_info_text {
version_no ver;
std::string dllink;
};
inline bool get_version_no_from_file(version_no& ver, const std::string& file_path) {
std::ifstream in(file_path);
if (!in)return false;
std::stringstream is;
is << in.rdbuf();
......
......@@ -26,7 +26,7 @@ inline bool get_file_open_dialog_result(std::wstring& path,
if (!default_folder.empty()) {
IShellItem *psiFolder;
LPCWSTR szFilePath = SysAllocStringLen(default_folder.data(), default_folder.size());
//LPCWSTR szFilePath = SysAllocStringLen(default_folder.data(), default_folder.size());
//hr = SHCreateItemFromParsingName(szFilePath, NULL, IID_PPV_ARGS(&psiFolder));
//if (SUCCEEDED(hr))
// hr = pFileOpen->SetDefaultFolder(psiFolder);
......@@ -107,7 +107,7 @@ inline bool get_save_as_dialog_path(std::wstring& path,
if (!default_folder.empty()) {
IShellItem *psiFolder;
LPCWSTR szFilePath = SysAllocStringLen(default_folder.data(), default_folder.size());
//LPCWSTR szFilePath = SysAllocStringLen(default_folder.data(), default_folder.size());
//hr = SHCreateItemFromParsingName(szFilePath, NULL, IID_PPV_ARGS(&psiFolder));
//if (SUCCEEDED(hr))
// hr = pFileSave->SetDefaultFolder(psiFolder);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment