aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2020-10-23 01:29:57 +0200
committerJohn Ankarström <john@ankarstrom.se>2020-10-23 01:29:57 +0200
commiteecc489a5576401219e90e7ba4bf690951c6d452 (patch)
tree6dafb5b81b3ca82750f49315f9f9de7dedc5e0cf
parent367c886b56654f0296b0ab82b6231565488a9594 (diff)
downloaddrm-eecc489a5576401219e90e7ba4bf690951c6d452.tar.gz
customize 1.4.3
-rw-r--r--CHANGELOG.txt4
-rw-r--r--drm.ahk2
-rw-r--r--drm.exebin836608 -> 0 bytes
-rw-r--r--drm.x4
-rw-r--r--patch.bat9
5 files changed, 14 insertions, 5 deletions
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
--- a/drm.exe
+++ /dev/null
Binary files 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