Skip to content

Commit

Permalink
Globalizations fix(some cultures used commas instead of periods)
Browse files Browse the repository at this point in the history
  • Loading branch information
baaron4 committed Apr 14, 2018
2 parents 9eb8125 + 3297aaa commit 27c85d4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
4 changes: 3 additions & 1 deletion LuckParser/Controllers/Controller1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
using System.Net;
using LuckParser.Models;
using System.IO.Compression;
using System.Windows.Forms;
//recomend CTRL+M+O to collapse all
namespace LuckParser.Controllers
{
Expand Down Expand Up @@ -2669,7 +2670,7 @@ public void CreatePlayerTab(StreamWriter sw) {
"source: '" + skillIcon + "'," +
"xref: 'x'," +
"yref: 'y'," +
"x: " + cl.getTime() / 1000f + "," +
"x: " + (cl.getTime() / 1000f) + "," +
"y: 0," +
"sizex: 1.1," +
"sizey: 1.1," +
Expand Down Expand Up @@ -3223,6 +3224,7 @@ public void CreateEventList(StreamWriter sw) {
}
public void CreateHTML(StreamWriter sw,bool[] settingsSnap)
{

SnapSettings = settingsSnap;
BossData b_data = getBossData();
double fight_duration = (b_data.getLastAware() - b_data.getFirstAware()) / 1000.0;
Expand Down
4 changes: 4 additions & 0 deletions LuckParser/Form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,10 @@ void m_oWorker_DoWork(object sender, DoWorkEventArgs e)
int pos = path.LastIndexOf("/") + 1;
string file = path.Substring(pos, path.Length - pos);
int pos1 = file.LastIndexOf(".") + 1;
if(path.EndsWith(".evtc.zip", StringComparison.OrdinalIgnoreCase)){
pos1 = pos1 - 5;
}

string appendix = file.Substring(pos1, file.Length - pos1);
string fileName = file.Substring(0, pos1 - 1);

Expand Down
2 changes: 1 addition & 1 deletion LuckParser/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ static class Program
[STAThread]
static void Main()
{

Application.CurrentCulture = System.Globalization.CultureInfo.CreateSpecificCulture("en-US");
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Form1());
Expand Down

0 comments on commit 27c85d4

Please sign in to comment.