File tree Expand file tree Collapse file tree 2 files changed +17
-7
lines changed Expand file tree Collapse file tree 2 files changed +17
-7
lines changed Original file line number Diff line number Diff line change @@ -35,10 +35,12 @@ This program solve the problem in 2 different ways:
3535
3636## Cool ! How do I use it ?
3737
38- - Download the [ ** executable** ] ( https://github.com/loitho/acmi-compiler/releases/download/v0.1 /acmi-compiler-v0.1 .exe )
38+ - Download the [ ** executable** ] ( https://github.com/loitho/acmi-compiler/releases/download/v0.2 /acmi-compiler-v0.2 .exe )
3939
4040- Move the .exe file to your ACMI folder (by default: C:\Falcon BMS 4.33 U1\User\Acmi)
4141
42+ - ** Clear the ACMI Folder of any .flt file**
43+
4244- Run the .exe by double clicking on it. (It must run in the background)
4345
4446- Start Falcon BMS and play normally, the program will detect new .flt and prevent falcon from converting them
Original file line number Diff line number Diff line change 11// FolderMonitor.cpp
2- // File created : 2017-10-22
2+ // File created : 2017-11-6
33//
44//
5- // Last update : 2017-11-4
5+ // Last update : 2017-11-7
66// By loitho
77
88// https://msdn.microsoft.com/en-us/library/aa365261%28VS.85%29.aspx?f=255&MSPPError=-2147217396
@@ -88,7 +88,7 @@ int WatchDirectory(LPTSTR lpDir)
8888 }
8989
9090 printf (" \n Waiting for change in folder...\n " );
91- printf (" \n Once you finished recording your flight on BMS\n press any key to stop the loop and prepare for conversion\n " );
91+ printf (" \n Once you finished recording your flight on BMS\n press the 'k' key to stop the loop and prepare for conversion\n " );
9292
9393 while (TRUE )
9494 {
@@ -124,10 +124,18 @@ int WatchDirectory(LPTSTR lpDir)
124124 // Check if we received a keyboard input
125125 if (_kbhit ())
126126 {
127- printf (" \n Key struck was '%c'\n\n " , _getch ());
127+ char c = _getch ();
128+
128129
129- // Who need to check exit value when you can throw your way out
130- throw std::runtime_error (" keyboard input" );
130+ if (c == ' k' )
131+ {
132+ printf (" \n Loop stopped\n\n " );
133+
134+ // Who need to check exit value when you can throw your way out
135+ throw std::runtime_error (" keyboard input" );
136+ }
137+
138+ printf (" \n Key struck was '%c', you need to press 'k' if you want to stop the loop and start compilation\n\n " , c);
131139 }
132140
133141
You can’t perform that action at this time.
0 commit comments