Skip to content

Commit

Permalink
keep ini file capitalization same as exe
Browse files Browse the repository at this point in the history
  • Loading branch information
bbbradsmith committed Oct 13, 2024
1 parent 1f35018 commit 457276b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions BinxelviewForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ namespace Binxelview
public partial class BinxelviewForm : Form
{
const string APPNAME = "Binxelview";
const string APPDATA_FOLDER = "binxelview";
const string APPDATA_FOLDER = "Binxelview";
const int MAX_BPP = 32;
const int PRESET_VERSION = 2;
const int PALETTE_BITS = 14; // maximum bits to fill 128 x 128 square
Expand Down Expand Up @@ -2663,9 +2663,9 @@ private void BinxelviewForm_Load(object sender, EventArgs e)

// parse INI file
ini_path = "";
string ini_cwd = Path.Combine(dir_cwd.ToString(),"binxelview.ini");
ini_exe = Path.Combine(dir_cwd.ToString(),"binxelview.ini");
ini_loc = Path.Combine(dir_cwd.ToString(),"binxelview.ini");
string ini_cwd = Path.Combine(dir_cwd.ToString(),"Binxelview.ini");
ini_exe = Path.Combine(dir_cwd.ToString(),"Binxelview.ini");
ini_loc = Path.Combine(dir_cwd.ToString(),"Binxelview.ini");
if (File.Exists(ini_cwd)) { ini_path = ini_cwd; }
else if (File.Exists(ini_exe)) { ini_path = ini_exe; }
else if (File.Exists(ini_loc)) { ini_path = ini_loc; }
Expand Down
4 changes: 2 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ When save on exit is applied, options will be saved back to the first INI file t
or the INI selected from the command line -ini option. If no INI was found, 2 locations will be
tried in order. If a write to the executable directory fails, appdata will be attempted instead.
- The executable directory.
- The appdata local folder. (%LOCALAPPDATA%\binxelview)
- The appdata local folder. (%LOCALAPPDATA%\Binxelview)


Because save on exit is an option saved to the INI file, if you want to create a "read only"
Expand All @@ -265,7 +265,7 @@ from the menu. This will save the current options now, since disabling that opti
them from being saved when you exit the program.


You can create "workspaces" for Binxelview by putting a binxelview.ini, presets, etc. into
You can create "workspaces" for Binxelview by putting a Binxelview.ini, presets, etc. into
a folder, then opening Binxelview with that folder as the current working directory.

Alternatively, you might use the -ini command line option to create a shortcut that applies
Expand Down

0 comments on commit 457276b

Please sign in to comment.