Skip to content

Commit

Permalink
Merge pull request #111 from demonred8/master
Browse files Browse the repository at this point in the history
WriteMemory Float value problem #108 Fix
  • Loading branch information
erfg12 authored Apr 11, 2021
2 parents 16baad7 + dff1345 commit e801929
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Memory/memory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1066,6 +1066,7 @@ public bool WriteMemory(string code, string type, string write, string file = ""

if (type.ToLower() == "float")
{
write = Convert.ToString(float.Parse(write, CultureInfo.InvariantCulture));
memory = BitConverter.GetBytes(Convert.ToSingle(write));
size = 4;
}
Expand Down

0 comments on commit e801929

Please sign in to comment.