Skip to content

Commit ef25bcd

Browse files
committed
Added support for Odyssey’s new StartPreset.4.start file
fixes #29
1 parent c83848c commit ef25bcd

File tree

3 files changed

+39
-23
lines changed

3 files changed

+39
-23
lines changed

CHANGELOG.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,14 @@
1-
# 4.2 (2021-08-13)
1+
# 4.2.1 (2021-12-24)
2+
3+
## Fixed
4+
5+
* Added support for Odyssey’s new `StartPreset.4.start` file; the preset
6+
selected in the Odyssey client will take precedence, so make sure you use the
7+
same preset for Horizons (#29).
8+
9+
-----
10+
11+
# 4.2 (2021-08-13)
212

313
## Added
414

@@ -16,6 +26,8 @@
1626

1727
* Now correctly loads presets that contain regex special characters (#28).
1828

29+
-----
30+
1931
# 4.1 (2021-05-22)
2032

2133
## Added

README.md

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
1-
# bindED
2-
3-
This VoiceAttack plugin reads keybindings in Elite:Dangerous and stores them as
4-
VoiceAttack variables. It was originally written by Gary (the developer of
5-
VoiceAttack) [and published on the VoiceAttack
6-
forums](https://forum.voiceattack.com/smf/index.php?topic=564.0). You can find
7-
the [original README here](https://alterNERDtive.github.io/bindED/ReadMe.txt)
8-
for reference.
9-
10-
I have basically done a complete rewrite of the original source code at this point
11-
and added a lot of features including automatic detection of the correct
12-
bindings file and support for non-US keyboard layouts (see below for details).
1+
# bindED
2+
3+
This VoiceAttack plugin reads keybindings in Elite:Dangerous and stores them as
4+
VoiceAttack variables. It was originally written by Gary (the developer of
5+
VoiceAttack) [and published on the VoiceAttack
6+
forums](https://forum.voiceattack.com/smf/index.php?topic=564.0). You can find
7+
the [original README here](https://alterNERDtive.github.io/bindED/ReadMe.txt)
8+
for reference.
9+
10+
I have basically done a complete rewrite of the original source code at this point
11+
and added a lot of features including automatic detection of the correct
12+
bindings file and support for non-US keyboard layouts (see below for details).
1313

1414
## Documentation & Installation Guide
1515

1616
You can find [comprehensive documentation on Github
1717
Pages](https://alterNERDtive.github.io/bindED).
18-
18+
1919
## Need Help / Want to Contribute?
2020

21-
Have a look at [the troubleshooting
22-
guide](https://alterNERDtive.github.io/bindED/troubleshooting). If your problem
23-
persists, please [file an
24-
issue](https://github.com/alterNERDtive/bindED/issues/new). Thanks! :)
25-
26-
You can also [say “Hi” on Discord](https://discord.gg/YeXh2s5UC6) if that is
21+
Have a look at [the troubleshooting
22+
guide](https://alterNERDtive.github.io/bindED/troubleshooting). If your problem
23+
persists, please [file an
24+
issue](https://github.com/alterNERDtive/bindED/issues/new). Thanks! :)
25+
26+
You can also [say “Hi” on Discord](https://discord.gg/YeXh2s5UC6) if that is
2727
your thing.

bindED.cs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ private static Dictionary<string, List<string>>? Binds
9090
}
9191
private static Dictionary<string, List<string>>? _binds;
9292

93-
public static string VERSION = "4.2";
93+
public static string VERSION = "4.2.1";
9494

9595
public static string VA_DisplayName() => $"bindED Plugin v{VERSION}-alterNERDtive";
9696

@@ -294,10 +294,14 @@ private static Dictionary<String, int> LoadKeyMap(string layout)
294294

295295
private static string DetectPreset()
296296
{
297-
string startFile = Path.Combine(_bindingsDir, "StartPreset.start");
297+
string startFile = Path.Combine(_bindingsDir, "StartPreset.4.start");
298298
if (!File.Exists(startFile))
299299
{
300-
throw new FileNotFoundException("No 'StartPreset.start' file found. Please run Elite: Dangerous at least once, then restart VoiceAttack.");
300+
startFile = Path.Combine(_bindingsDir, "StartPreset.start");
301+
if (!File.Exists(startFile))
302+
{
303+
throw new FileNotFoundException("No 'StartPreset.start' file found. Please run Elite: Dangerous at least once, then restart VoiceAttack.");
304+
}
301305
}
302306

303307
IEnumerable<string> presets = File.ReadAllLines(startFile).Distinct();

0 commit comments

Comments
 (0)