[misc] use application dir for storage in portable mode

* Also improve path reporting in the log.
* Also fix MinGW warnings
This commit is contained in:
Pete Batard 2021-10-11 20:08:04 +01:00
parent 9cd7adaaaa
commit 56a99e6394
No known key found for this signature in database
GPG key ID: 38E0CF5E69EDD671
5 changed files with 19 additions and 16 deletions

View file

@ -160,7 +160,7 @@ static uint64_t progress_offset = 0, progress_total = 100;
static wchar_t wmount_path[MAX_PATH] = { 0 }, wmount_track[MAX_PATH] = { 0 };
static char sevenzip_path[MAX_PATH];
static const char conectix_str[] = VHD_FOOTER_COOKIE;
static BOOL count_files, use_msg_progress = FALSE;
static BOOL count_files;
// Apply/Mount image functionality
static const char *_image, *_dst;
static int _index, progress_op = OP_FILE_COPY, progress_msg = MSG_267;
@ -506,7 +506,7 @@ uint8_t WimExtractCheck(BOOL bSilent)
// So, yeah, this is both very slow and wasteful of space.
//
// NB: You can see mounted WIMs, along with their mountpoint, by checking:
// HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WIMMount\Mounted Images\
// HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WIMMount\Mounted Images
// You can also mount/unmount images from an elevated prompt with something like:
// dism /mount-image [/readonly] /imagefile:F:\sources\boot.wim /index:2 /mountdir:C:\test\offline
// dism /unmount-image /discard /mountdir:C:\test\offline