Skip to content

Commit

Permalink
Changed altnames file extension from cfg to txt
Browse files Browse the repository at this point in the history
  • Loading branch information
kala13x committed Mar 17, 2024
1 parent bdc7afe commit 5a0c359
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,12 @@ In addition to the predefined names, `XRemote` uses alternative button names to

The application stores and reads alternate names from the following file:
```
SD Card/apps_data/flipper_xremote/alt_names.cfg
SD Card/apps_data/flipper_xremote/alt_names.txt
```

If the `Alt-Names` option is enabled in the config and the file does not exist, it will be created automatically with default values during the application's startup. You can edit, add, or remove any button or alternate name values from this file. Button names must either have only the first uppercase or be entirely lowercase. As for alternate names, they are case-insensitive. The button can have one or several comma-separated alternate names.

This is the default `alt_names.cfg` file:
This is the default `alt_names.txt` file:

```
Filetype: XRemote Alt-Names
Expand Down
2 changes: 1 addition & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ Stop | Stop
In addition to the predefined names, XRemote uses alternative button names to make it as easy as possible to interact with different types of IR dumps. That means if a button with the appropriate name is not found in the file, the application will try to find the same button with alternative names. Ensure this feature is enabled in the application settings before you use it.

The application stores and reads alternate names from the following file:
SD_Card/apps_data/flipper_xremote/alt_names.cfg
SD_Card/apps_data/flipper_xremote/alt_names.txt

If the Alt-Names option is enabled in the config and the file does not exist, it will be created automatically with default values during the application's startup. You can edit, add, or remove any button or alternate name values from this file. Button names must either have only the first uppercase or be entirely lowercase. As for alternate names, they are case-insensitive. The button can have one or several comma-separated alternate names.

Expand Down
2 changes: 1 addition & 1 deletion xremote_app.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@

#define XREMOTE_APP_FOLDER ANY_PATH("infrared")
#define XREMOTE_APP_SETTINGS APP_DATA_PATH("xremote.cfg")
#define XREMOTE_ALT_NAMES APP_DATA_PATH("alt_names.cfg")
#define XREMOTE_ALT_NAMES APP_DATA_PATH("alt_names.txt")

#define xremote_app_assert_void(cond) \
if(!cond) return
Expand Down

0 comments on commit 5a0c359

Please sign in to comment.