improve skip check and fix old format
This commit is contained in:
parent
e9c83dd8ce
commit
a28b56f481
2 changed files with 5 additions and 5 deletions
|
@ -292,7 +292,7 @@ namespace EnvyUpdate
|
||||||
}
|
}
|
||||||
|
|
||||||
//Check for different version than skipped version
|
//Check for different version than skipped version
|
||||||
if (skippedVer != onlineDriv)
|
if (skippedVer != null && skippedVer != onlineDriv)
|
||||||
{
|
{
|
||||||
Debug.LogToFile("INFO Skipped version is surpassed, deleting setting.");
|
Debug.LogToFile("INFO Skipped version is surpassed, deleting setting.");
|
||||||
skippedVer = null;
|
skippedVer = null;
|
||||||
|
|
|
@ -223,12 +223,12 @@ namespace EnvyUpdate
|
||||||
string sName = name.Value.ToString().ToLower();
|
string sName = name.Value.ToString().ToLower();
|
||||||
if (sName == query)
|
if (sName == query)
|
||||||
{
|
{
|
||||||
Debug.LogToFile("DEBUG Matched GetValueFromName query: " + sName);
|
Debug.LogToFile("INFO Matched GetValueFromName query: " + sName);
|
||||||
string cleanResult = null;
|
string cleanResult = null;
|
||||||
|
|
||||||
if (psid)
|
if (psid)
|
||||||
{
|
{
|
||||||
Debug.LogToFile("DEBUG Getting psid.");
|
Debug.LogToFile("INFO Getting psid.");
|
||||||
|
|
||||||
if (i == 0)
|
if (i == 0)
|
||||||
value1 = int.Parse(name.Parent.FirstAttribute.Value);
|
value1 = int.Parse(name.Parent.FirstAttribute.Value);
|
||||||
|
@ -237,7 +237,7 @@ namespace EnvyUpdate
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Debug.LogToFile("DEBUG Getting something other than psid.");
|
Debug.LogToFile("INFO Getting something other than psid.");
|
||||||
|
|
||||||
string result = name.Parent.Value.ToLower();
|
string result = name.Parent.Value.ToLower();
|
||||||
int index = result.IndexOf(sName);
|
int index = result.IndexOf(sName);
|
||||||
|
@ -452,7 +452,7 @@ namespace EnvyUpdate
|
||||||
|
|
||||||
if (Debug.isFake)
|
if (Debug.isFake)
|
||||||
{
|
{
|
||||||
Debug.LogToFile("DEBUG Loading fake IDs.");
|
Debug.LogToFile("INFO Loading fake IDs.");
|
||||||
psid = Debug.LoadFakeIDs("psid");
|
psid = Debug.LoadFakeIDs("psid");
|
||||||
pfid = Debug.LoadFakeIDs("pfid");
|
pfid = Debug.LoadFakeIDs("pfid");
|
||||||
osid = Debug.LoadFakeIDs("osid");
|
osid = Debug.LoadFakeIDs("osid");
|
||||||
|
|
Reference in a new issue