Commit 79cd55f 1 parent e700318 commit 79cd55f Copy full SHA for 79cd55f
File tree 2 files changed +7
-3
lines changed
2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,9 @@ public class Plugin : _7HPlugin
19
19
[ DllImport ( "user32.dll" ) ]
20
20
public static extern IntPtr SetFocus ( IntPtr hWnd ) ;
21
21
22
+ [ DllImport ( "Kernel32.dll" ) ]
23
+ public static extern void AllocConsole ( ) ;
24
+
22
25
[ DllImport ( "Kernel32.dll" ) ]
23
26
public static extern IntPtr GetCurrentThreadId ( ) ;
24
27
@@ -109,7 +112,7 @@ private void getProccess()
109
112
{
110
113
Process [ ] processes = Process . GetProcesses ( ) ;
111
114
Console . WriteLine ( "Proccesses found." ) ;
112
- Regex test = new Regex ( @"ff7 (_[a-z]{2}){0,1}\.exe" ) ;
115
+ Regex test = new Regex ( @"[fF][fF]7 (_[a-z]{2}){0,1}\.exe" ) ;
113
116
foreach ( Process proc in processes )
114
117
{
115
118
try
@@ -157,7 +160,8 @@ private void getKeys()
157
160
}
158
161
159
162
public override void Start ( RuntimeMod mod )
160
- {
163
+ {
164
+ AllocConsole ( ) ;
161
165
soundCompleteId = hooks_instance . hookSoundComplete ( new SoundCompleteAction ( ( int soundId , string f ) =>
162
166
{
163
167
Console . WriteLine ( "Sound from file " + f + " has finished" ) ;
Original file line number Diff line number Diff line change 2
2
<Project ToolsVersion =" 15.0" xmlns =" http://schemas.microsoft.com/developer/msbuild/2003" >
3
3
<PropertyGroup Condition =" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU'" >
4
4
<StartAction >Program</StartAction >
5
- <StartProgram >D:\Games\FF7-heaven v1.54 \7thHeaven.exe</StartProgram >
5
+ <StartProgram >D:\Projects\GitHub\7h\.dist\Build\Debug \7thHeaven.exe</StartProgram >
6
6
</PropertyGroup >
7
7
</Project >
You can’t perform that action at this time.
0 commit comments