Skip to content

Commit

Permalink
SGD and THB currencies support
Browse files Browse the repository at this point in the history
Thanks to participants!
  • Loading branch information
Maxx53 committed Sep 17, 2014
1 parent 61ddc50 commit dc9dc09
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions scr/SCMBot/SteamUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ public class CurrInfoLst : List<CurrencyInfo>
{
public CurrInfoLst()
{
//1 for USD, 2 for GBP, 3 for EUR, 5 for RUB, 7 for BRL, 11 for MYR
//1 for USD, 2 for GBP, 3 for EUR, 5 for RUB, 7 for BRL, 11 for MYR, 13 for SGD, 14 for THB

this.Add(new CurrencyInfo("&#36;", "$", "1"));
this.Add(new CurrencyInfo("p&#1091;&#1073;.", "руб.", "5"));
Expand All @@ -172,6 +172,11 @@ public CurrInfoLst()
this.Add(new CurrencyInfo("&#82;&#36;", "R$", "7"));
//Fixed, thanks to Malaysian guy.
this.Add(new CurrencyInfo("RM", "RM", "11"));
//Fixed, thanks to Singaporian guy.
this.Add(new CurrencyInfo("S&#36;", "S$ ", "13"));
//Fixed, thanks to Thai guy.
this.Add(new CurrencyInfo("#x0e3f;", "฿", "14"));

this.NotSet = true;
this.Current = 0;
}
Expand Down Expand Up @@ -655,7 +660,7 @@ public StrParam GetNameBalance(CookieContainer cock, CurrInfoLst currLst)
string markpage = SendGet(_market, cock, false, true);

//For testring purposes!
//string markpage = System.IO.File.ReadAllText(@"C:\myr.htm");
//string markpage = System.IO.File.ReadAllText(@"C:\sing.htm");

//Fix to getting name regex
string parseName = Regex.Match(markpage, "(?<=buynow_dialog_myaccountname\">)(.*)(?=</span>)").ToString().Trim();
Expand Down

0 comments on commit dc9dc09

Please sign in to comment.