From cce2376695d176e12406cbd1f62f3b8a0ace98a6 Mon Sep 17 00:00:00 2001 From: thatguywiththatname Date: Mon, 17 Jun 2019 05:16:19 +0100 Subject: [PATCH] Remove .txt from menu items, update readme, general smaller fixes / additions --- .gitignore | 2 +- README.md | 44 ++++++++++++++++++++++++++++++++++++-------- screenshot.png | Bin 12523 -> 12874 bytes source/configs.c | 10 +++++----- source/main.c | 1 - 5 files changed, 42 insertions(+), 15 deletions(-) diff --git a/.gitignore b/.gitignore index 09a26d7..19d2b57 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ -# Ignore generated config.txt +# Ignore generated config files source/config.txt # Created by https://www.gitignore.io/api/c,clion diff --git a/README.md b/README.md index 97f5e52..f84ecea 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # E-APO-Config-Switcher -![travis-build](https://travis-ci.com/psidex/E-APO-Config-Switcher.svg?branch=master) -![license](https://img.shields.io/github/license/psidex/E-APO-Config-Switcher.svg) +[![Build Status](https://travis-ci.com/psidex/E-APO-Config-Switcher.svg?branch=master)](https://travis-ci.com/psidex/E-APO-Config-Switcher) +[![license](https://img.shields.io/github/license/psidex/E-APO-Config-Switcher.svg)](LICENSE) A small Windows app that sits in the tray and allows you to quickly switch between using different [Equalizer APO](https://sourceforge.net/projects/equalizerapo/) configuration files @@ -15,10 +15,8 @@ A small Windows app that sits in the tray and allows you to quickly switch betwe ## Warnings -*Both of these will be fixed in a future release* - -- This will erase any configuration you currently have (and will continue to erase any changes you make to `config.txt`) -- This will not work alongside other configuration programs, such as Peace +- This won't work alongside other configuration programs such as Peace or the default configuration program that comes with Equalizer APO +- This will overwrite Equalizer APO's `config.txt`. Make a backup if you need to! ## Install @@ -30,9 +28,39 @@ A small Windows app that sits in the tray and allows you to quickly switch betwe ## Edit / Add / Remove Configurations -Simply copy the configuration text you want and put it in a `.txt` file inside `E-APO-Config-Switcher\config-files`. If you look in there you will also see the configurations that are included with this app +The configuration folder (the folder that contains all the configuration files) is located at `EqualizerAPO\config\E-APO-Config-Switcher\config-files` + +### Adding your own config + +Let's say you have this configuration for Equalizer APO: + +``` +Channel: all +Preamp: -2.5 dB +Filter 1: ON LS Fc 500 Hz Gain 5 dB +``` + +and you want to call the configuration `My Config` + +Copy the config text (shown above) and place in a file named `My Config.txt` + +Move this file into the configuration folder + +Restart E-APO-Config-Switcher and you will see your new configuration appear in the list + +### Editing a config + +Find the `.txt` in the configuration folder of the config you want to edit + +Open the file and edit the text how you want + +Once you save the file, un-check (if it was previously checked) and check the configuration in E-APO-Config-Switcher and your new configuration will be applied + +### Remove a config + +To remove a config all you have to do is delete the `.txt` file associated with that configuration -You will need to restart the app if you create / delete any configuration files +Restart E-APO-Config-Switcher and you will see the configuration does not appear in the list anymore ## Credits diff --git a/screenshot.png b/screenshot.png index 27829a6e449d79f51d8aaec050497056922713b5..9f5f3f6d122e14489442b53fa532a9cdcaf4b43d 100644 GIT binary patch literal 12874 zcmd^mc|6-`yEoO+v391dWn$@6tF)G48hg}qR6B~QQM;(rRtX}t3vE5BZHTJ2s3k?w z)>aji4Qh*6g4hWS5rps>dgeXvdCv2mbKZa7Kk`X_`Q5+!zOL(gE#K?DlgHOB z&BTO%7UtvQ6T5ol_ZxhC{NlSW*~5an-vCP;FYLbYBW{@e##cg-o!z}S=w)JI!pB#Z zD6)0y(C+mQ0aqLle0<`Kf4%t0{%>#d@oCbp{%-PTs4Fwmp~%B7jn0$QPRkbX6i#jM zyex)meLHyZ=ik~oZwSae>Es19{wKF5e|eI0@`;IH4!URd z?r(=LYyAni4tS7#NLYg{@{KR?%v$9dFLQ-Hzlc~gvaMjgM-miy*gkH41t)~UrHs@r z4g`&exUOfIS|1|<{~S|(;_mxC;FxLI1zX)GIn-BYWlgQ27RS*!%D8-CGwWkcHnF+N zPm14t-W}fe|Ml#L>FF2{&6`!+&&3zIdXH(G_BUkkKuOE@cg zH0i4PlWOZ&$VshcQ%#-s0oQ(4s#c!5d>s9_>68?4=+hGiCR|ASiC$!(#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Fje;cV+4X-|eOj z=QmJ@`~cw&Xanu<$k1N;Tw_Oe;-FDhs8OC)yGioOYbxhK3;l_-eeY0zbsZnFsK1?D zD>_b6&v;XL8MYK)&GtkpTQtER|HD`3Jt{>qKuUedU~=kS!QU)v2_*F12}4v2Y0%l5 zDwnYCYkQ^2)M@qL_x%QGeLlJ^gFScwbQ{m=&KHas%eQe742c$T;G6~SVcy%c-y=)f zA95pCi8!1Ny*!;z81K&^wX36Oxn?z$<7fyX2I6MxS@6+^9oSyp7Eljzqx$qaNGbTVz=w%*T@1-**j$0<&^&WT&Gi6zO=SAgkf}xWMw)PK?3|>y{mTJ`T-} zf5Pm~9CS}X&RhCFTN{+c7$f~(Xx&}`SJVX9>*p>lq~0U&hE*hEYeZvd3zKly6l9JC z{*6=r#TEQlMI(3N1XXgTW?jVU82dvp#pa2K69Lyeezc|{rwE<3ID#i-N79RPz=N^i zm;FvT2;@NxujM&SK}u)FJEGXNV%L@Oq0~8On+9h^lf$opC^z&;*c7=FO#qZ!zIsZH zFY-yjr~I*Wwb(fao6Ie^TWbH2I@=N_^4lSkno2zaeo2wAY$De#lrOsEAeY)(gVD%G zz4IJ%Z7NMb%6`@*j`oL~1QIHG=noGGV$jeWa5ufYm0s>B^|)7p;~_Mh<_3WWh)|$S wfyrolT*$lc^fG?j8k2-MCA|Y~=IqAKL+y;t->%yGg951=y#B#Q*>R diff --git a/source/configs.c b/source/configs.c index d7be168..2cf6591 100644 --- a/source/configs.c +++ b/source/configs.c @@ -6,19 +6,19 @@ const char config_files_glob[] = "config-files\\*.txt"; // The master config file that Equalizer APO reads -const char config_master_path[] = "../config.txt"; +const char config_file_path[] = "../config.txt"; // config_files_base is relative to the master config file const char config_files_base[] = "E-APO-Config-Switcher\\config-files\\"; void config_write_to_file(int config_count, struct e_apo_config *e_apo_configs) { + // TODO: Handle file stream being NULL + FILE *config_file = fopen(config_file_path, "w"); // For each checked config, write the include_text to the master config file - // TODO: Switch to fopen_s?, handle err - FILE *fp = fopen(config_master_path, "w"); for(int i = 0; i < config_count; i++) { - if (e_apo_configs[i].checked) fputs(e_apo_configs[i].include_text, fp); + if (e_apo_configs[i].checked) fputs(e_apo_configs[i].include_text, config_file); } - fclose(fp); + fclose(config_file); } int config_file_count() { diff --git a/source/main.c b/source/main.c index fe552db..31f243a 100644 --- a/source/main.c +++ b/source/main.c @@ -1,4 +1,3 @@ -#include #define TRAY_WINAPI 1 #include "tray.h" #include "configs.h"