From eecc489a5576401219e90e7ba4bf690951c6d452 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Fri, 23 Oct 2020 01:29:57 +0200 Subject: customize 1.4.3 --- CHANGELOG.txt | 4 ---- drm.ahk | 2 +- drm.exe | Bin 836608 -> 0 bytes drm.x | 4 ++++ patch.bat | 9 +++++++++ 5 files changed, 14 insertions(+), 5 deletions(-) delete mode 100644 CHANGELOG.txt delete mode 100644 drm.exe create mode 100644 drm.x create mode 100644 patch.bat diff --git a/CHANGELOG.txt b/CHANGELOG.txt deleted file mode 100644 index 38f43a2..0000000 --- a/CHANGELOG.txt +++ /dev/null @@ -1,4 +0,0 @@ -CHANGELOG ---------------------- 1.4.3 --------------------- 2020-05-08 - -NEW: Now just uses the icon directly from shell32.dll instead of embed- - ding the same in the script. \ No newline at end of file diff --git a/drm.ahk b/drm.ahk index f5ac76b..c0a8091 100644 --- a/drm.ahk +++ b/drm.ahk @@ -193,7 +193,7 @@ Save(ByRef Positions) if (style & 0x40000 = 0) ; WS_SIZEBOX DoIgnoreSize := true - ; Custom rules + #IncludeAgain %A_ScriptDir%\drm.x ; Example: ; if (exe = "mpc-hc.exe" and cw = 294) diff --git a/drm.exe b/drm.exe deleted file mode 100644 index 0165ba3..0000000 Binary files a/drm.exe and /dev/null differ diff --git a/drm.x b/drm.x new file mode 100644 index 0000000..e35c42b --- /dev/null +++ b/drm.x @@ -0,0 +1,4 @@ +if (exe = "mpc-hc.exe" and (cw = 294 or cw = 304 or cw = 307)) +{ + DoIgnoreSize := true +} \ No newline at end of file diff --git a/patch.bat b/patch.bat new file mode 100644 index 0000000..5ccd33e --- /dev/null +++ b/patch.bat @@ -0,0 +1,9 @@ +@echo off +setlocal +cd /d %~dp0 +if "%~1" == "" ( + echo Error: argument missing + pause + exit /b +) +sed "s/^ ; Custom rules$/ #IncludeAgain %%A_ScriptDir%%\\\\drm.x/" "%~1" > drm.ahk \ No newline at end of file -- cgit v1.2.3