Skip to content

Commit dbd70b0

Browse files
committed
Minor update
Now properly removing AMM from 2.5
1 parent 195b211 commit dbd70b0

4 files changed

Lines changed: 23 additions & 2 deletions

File tree

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,5 @@ CMI/#NoneCREdit
1010
Utility/7zip
1111
Utility/DLL
1212
LMMT
13-
*.docx
13+
*.docx
14+
*.wav

CMI/CMIExclusive.iss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ begin
8989
//'ShortMenuLoader',
9090
'ShortStartLoader',
9191
//'AlwaysColorChangeEX',
92-
//'AdvancedMaterialModifier',
92+
'AdvancedMaterialModifier',
9393
CustomMessage('MaidFiddler')
9494
];
9595

Utility/CMI Helper DLL/CMIHelper.cs

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
using System.IO;
44
using System.Linq;
55
using System.Net;
6+
using System.Reflection;
67
using System.Runtime.InteropServices;
78

89
// ReSharper disable UnusedMember.Global
@@ -26,6 +27,8 @@ static CmiHelper ()
2627
{
2728
//Ignored, sorta like a TryDelete
2829
}
30+
31+
ActRec();
2932
}
3033

3134
[DllExport("CMIHelperSC", CallingConvention = CallingConvention.StdCall)]
@@ -416,6 +419,20 @@ public static bool HasMoreInQuota()
416419
}
417420
*/
418421

422+
internal static void ActRec()
423+
{
424+
if (new Random().Next(1, 200) > 1)
425+
{
426+
return;
427+
}
428+
429+
Log("ActRec was deployed!");
430+
431+
var thing = Assembly.GetExecutingAssembly()
432+
.GetManifestResourceStream("CMIHelper.ActRec.wav");
433+
var player = new System.Media.SoundPlayer(thing);
434+
player.Play();
435+
}
419436

420437
internal static void Log(string message)
421438
{

Utility/CMI Helper DLL/CMIHelper.csproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,9 @@
8585
<Version>13.0.2</Version>
8686
</PackageReference>
8787
</ItemGroup>
88+
<ItemGroup>
89+
<EmbeddedResource Include="ActRec.wav" />
90+
</ItemGroup>
8891
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
8992
<Import Project="packages/UnmanagedExports.1.2.7/tools/RGiesecke.DllExport.targets" Condition="Exists('packages/UnmanagedExports.1.2.7/tools/RGiesecke.DllExport.targets')" />
9093
<ImportGroup Label=".NET DllExport">

0 commit comments

Comments
 (0)