ca-x / vivaldi_plus

根据shuax chrome_plus 修改
MIT License
162 stars 29 forks source link

Add support to read configuration from ini file #16

Closed sweep-ai[bot] closed 1 year ago

sweep-ai[bot] commented 1 year ago

PR Feedback (click)

Summary of Changes

Fixes #14.


🎉 Latest improvements to Sweep:


💡 To get Sweep to edit this pull request, you can:

sweep-ai[bot] commented 1 year ago

Rollback Files For Sweep

czyt commented 1 year ago

if the ini file does not exist,you should use origin path instead

sweep-ai[bot] commented 1 year ago

🚀 Wrote Changes

if the ini file does not exist,you should use origin path instead

Hi @czyt,

I decided to make the following changes:

File Path Proposed Changes
src/portable.h Modify src/portable.h with contents:
• In the GetUserDataDir() function, before calling GetPrivateProfileStringW(), add a check to see if the ini file exists using the PathFileExists() function. If the ini file does not exist, return the original path GetAppDir() + L"\\..\\Data".
• Similarly, in the GetDiskCacheDir() function, before calling GetPrivateProfileStringW(), add a check to see if the ini file exists using the PathFileExists() function. If the ini file does not exist, return the original path GetAppDir() + L"\\..\\Cache".