Skip to content
Snippets Groups Projects
Commit dee69e22 authored by Rico Possienka's avatar Rico Possienka
Browse files

be more tollerant for changing binary format

parent 42563a68
No related branches found
No related tags found
No related merge requests found
...@@ -29,11 +29,22 @@ public class DataPointProvider : MonoBehaviour ...@@ -29,11 +29,22 @@ public class DataPointProvider : MonoBehaviour
var stopWatch = new System.Diagnostics.Stopwatch(); var stopWatch = new System.Diagnostics.Stopwatch();
stopWatch.Start(); stopWatch.Start();
if (File.Exists(dataBlobPath)) bool readFromBlob = File.Exists(dataBlobPath);
if (readFromBlob)
{ {
ReadDataBlob(dataBlobPath); try
{
ReadDataBlob(dataBlobPath);
}
catch (Exception ex)
{
Debug.LogError(ex.Message);
readFromBlob = false;
}
} }
else
if(!readFromBlob)
{ {
ReadCSVFile(); ReadCSVFile();
WriteDataBlob(dataBlobPath); WriteDataBlob(dataBlobPath);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment