Skip to content

Commit

Permalink
Added PI.txt to resources
Browse files Browse the repository at this point in the history
Yay now it can run on any machine without extra files!
  • Loading branch information
organizedgrime committed Mar 13, 2016
1 parent 81a1a98 commit 2e1c469
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions Steg/LSBForm.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions Steg/LSBFunctions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,9 @@ public static void writeLSB(string filename, string outputDir, int brightness)
{
openImg(filename);
//read in the PI file
StreamReader reader = new StreamReader(@"PI.txt");
string txt = reader.ReadToEnd();
string txt = Properties.Resources.PI;

if(rgbValues.Length > txt.Length)
if (rgbValues.Length > txt.Length)
{
MessageBox.Show("We don't have that many digits of PI, so we might have to loop back to the start of PI. :(");
}
Expand Down
1 change: 1 addition & 0 deletions Steg/Resources/PI.txt

Large diffs are not rendered by default.

0 comments on commit 2e1c469

Please sign in to comment.