File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,4 +10,5 @@ CMI/#NoneCREdit
1010Utility /7zip
1111Utility /DLL
1212LMMT
13- * .docx
13+ * .docx
14+ * .wav
Original file line number Diff line number Diff line change 8989 // 'ShortMenuLoader',
9090 ' ShortStartLoader' ,
9191 // 'AlwaysColorChangeEX',
92- // 'AdvancedMaterialModifier',
92+ ' AdvancedMaterialModifier' ,
9393 CustomMessage(' MaidFiddler' )
9494 ];
9595
Original file line number Diff line number Diff line change 33using System . IO ;
44using System . Linq ;
55using System . Net ;
6+ using System . Reflection ;
67using 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 {
Original file line number Diff line number Diff line change 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" >
You can’t perform that action at this time.
0 commit comments