Skip to content

Commit

Permalink
Added support for Odyssey’s new StartPreset.4.start file
Browse files Browse the repository at this point in the history
fixes #29
  • Loading branch information
alterNERDtive committed Dec 24, 2021
1 parent c83848c commit ef25bcd
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 23 deletions.
14 changes: 13 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
# 4.2 (2021-08-13)
# 4.2.1 (2021-12-24)

## Fixed

* Added support for Odyssey’s new `StartPreset.4.start` file; the preset
selected in the Odyssey client will take precedence, so make sure you use the
same preset for Horizons (#29).

-----

# 4.2 (2021-08-13)

## Added

Expand All @@ -16,6 +26,8 @@

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

-----

# 4.1 (2021-05-22)

## Added
Expand Down
38 changes: 19 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
# bindED

This VoiceAttack plugin reads keybindings in Elite:Dangerous and stores them as
VoiceAttack variables. It was originally written by Gary (the developer of
VoiceAttack) [and published on the VoiceAttack
forums](https://forum.voiceattack.com/smf/index.php?topic=564.0). You can find
the [original README here](https://alterNERDtive.github.io/bindED/ReadMe.txt)
for reference.

I have basically done a complete rewrite of the original source code at this point
and added a lot of features including automatic detection of the correct
bindings file and support for non-US keyboard layouts (see below for details).
# bindED

This VoiceAttack plugin reads keybindings in Elite:Dangerous and stores them as
VoiceAttack variables. It was originally written by Gary (the developer of
VoiceAttack) [and published on the VoiceAttack
forums](https://forum.voiceattack.com/smf/index.php?topic=564.0). You can find
the [original README here](https://alterNERDtive.github.io/bindED/ReadMe.txt)
for reference.

I have basically done a complete rewrite of the original source code at this point
and added a lot of features including automatic detection of the correct
bindings file and support for non-US keyboard layouts (see below for details).

## Documentation & Installation Guide

You can find [comprehensive documentation on Github
Pages](https://alterNERDtive.github.io/bindED).


## Need Help / Want to Contribute?

Have a look at [the troubleshooting
guide](https://alterNERDtive.github.io/bindED/troubleshooting). If your problem
persists, please [file an
issue](https://github.com/alterNERDtive/bindED/issues/new). Thanks! :)

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

You can also [say “Hi” on Discord](https://discord.gg/YeXh2s5UC6) if that is
your thing.
10 changes: 7 additions & 3 deletions bindED.cs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ private static Dictionary<string, List<string>>? Binds
}
private static Dictionary<string, List<string>>? _binds;

public static string VERSION = "4.2";
public static string VERSION = "4.2.1";

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

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

private static string DetectPreset()
{
string startFile = Path.Combine(_bindingsDir, "StartPreset.start");
string startFile = Path.Combine(_bindingsDir, "StartPreset.4.start");
if (!File.Exists(startFile))
{
throw new FileNotFoundException("No 'StartPreset.start' file found. Please run Elite: Dangerous at least once, then restart VoiceAttack.");
startFile = Path.Combine(_bindingsDir, "StartPreset.start");
if (!File.Exists(startFile))
{
throw new FileNotFoundException("No 'StartPreset.start' file found. Please run Elite: Dangerous at least once, then restart VoiceAttack.");
}
}

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

0 comments on commit ef25bcd

Please sign in to comment.