Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jlib
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
captainwong
jlib
Commits
3f5bf409
Commit
3f5bf409
authored
Oct 22, 2017
by
captainwong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
23e38982
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
4 deletions
+15
-4
version_no.h
version_no.h
+13
-2
file_op.h
win32/file_op.h
+2
-2
No files found.
version_no.h
View file @
3f5bf409
...
@@ -55,8 +55,19 @@ struct version_no {
...
@@ -55,8 +55,19 @@ struct version_no {
};
};
inline
bool
get_version_no_from_ini
(
version_no
&
ver
,
const
std
::
string
&
ini_path
)
{
struct
update_info_json
{
std
::
ifstream
in
(
ini_path
);
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
;
if
(
!
in
)
return
false
;
std
::
stringstream
is
;
std
::
stringstream
is
;
is
<<
in
.
rdbuf
();
is
<<
in
.
rdbuf
();
...
...
win32/file_op.h
View file @
3f5bf409
...
@@ -26,7 +26,7 @@ inline bool get_file_open_dialog_result(std::wstring& path,
...
@@ -26,7 +26,7 @@ inline bool get_file_open_dialog_result(std::wstring& path,
if
(
!
default_folder
.
empty
())
{
if
(
!
default_folder
.
empty
())
{
IShellItem
*
psiFolder
;
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));
//hr = SHCreateItemFromParsingName(szFilePath, NULL, IID_PPV_ARGS(&psiFolder));
//if (SUCCEEDED(hr))
//if (SUCCEEDED(hr))
// hr = pFileOpen->SetDefaultFolder(psiFolder);
// hr = pFileOpen->SetDefaultFolder(psiFolder);
...
@@ -107,7 +107,7 @@ inline bool get_save_as_dialog_path(std::wstring& path,
...
@@ -107,7 +107,7 @@ inline bool get_save_as_dialog_path(std::wstring& path,
if
(
!
default_folder
.
empty
())
{
if
(
!
default_folder
.
empty
())
{
IShellItem
*
psiFolder
;
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));
//hr = SHCreateItemFromParsingName(szFilePath, NULL, IID_PPV_ARGS(&psiFolder));
//if (SUCCEEDED(hr))
//if (SUCCEEDED(hr))
// hr = pFileSave->SetDefaultFolder(psiFolder);
// hr = pFileSave->SetDefaultFolder(psiFolder);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment