Skip to content

Instantly share code, notes, and snippets.

@qinlili23333
Created February 9, 2022 09:50
Show Gist options
  • Save qinlili23333/552a679445e1d2af24c6040686b871ad to your computer and use it in GitHub Desktop.
Save qinlili23333/552a679445e1d2af24c6040686b871ad to your computer and use it in GitHub Desktop.
add hidpi aware to 7zsfx source
@echo off
title 7zsfx hidpi patch by Qinlili
echo Checking 7z source...
if exist .\CPP\7zip\makefile (
echo Done.)else (
echo Corrupt Source Code!
pause >nul
exit /b
)
echo Copying manifest from 7zFM...
xcopy /s /y .\CPP\7zip\UI\FileManager\7zFM.exe.manifest .\CPP\7zip\Bundles\SFXWin\
rename .\CPP\7zip\Bundles\SFXWin\7zFM.exe.manifest 7z.sfx.manifest
echo Done.
echo Adding manifest info to resource.rc...
set rcfile=.\CPP\7zip\Bundles\SFXWin\resource.rc
attrib -r %rcfile%
echo #ifndef UNDER_CE >>%rcfile%
echo 1 24 MOVEABLE PURE "../../Bundles/SFXWin/7z.sfx.manifest" >>%rcfile%
echo #endif >>%rcfile%
echo Done.
echo Patch Success.
pause >nul
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment