Fixed GTServer showing 0 for every upload ID in logs.

This commit is contained in:
Greg Edwards
2014-07-22 16:59:21 -04:00
parent 4198aace33
commit 30085bb4a1
3 changed files with 7 additions and 7 deletions

View File

@@ -93,7 +93,7 @@ namespace PkmnFoundations.GlobalTerminalService
break;
}
logEntry.AppendFormat("Box {0} uploaded successfully.", record.SerialNumber);
logEntry.AppendFormat("Box {0} uploaded successfully.", serial);
logEntry.AppendLine();
response.Write(new byte[] { 0x00, 0x00 }, 0, 2); // result code (0 for OK)
response.Write(BitConverter.GetBytes(serial), 0, 8);
@@ -149,7 +149,7 @@ namespace PkmnFoundations.GlobalTerminalService
break;
}
logEntry.AppendFormat("Dressup {0} uploaded successfully.", record.SerialNumber);
logEntry.AppendFormat("Dressup {0} uploaded successfully.", serial);
response.Write(new byte[] { 0x00, 0x00 }, 0, 2); // result code (0 for OK)
response.Write(BitConverter.GetBytes(serial), 0, 8);
@@ -203,7 +203,7 @@ namespace PkmnFoundations.GlobalTerminalService
break;
}
logEntry.AppendFormat("Battle video {0} uploaded successfully.", BattleVideoHeader4.FormatSerial(record.SerialNumber));
logEntry.AppendFormat("Battle video {0} uploaded successfully.", BattleVideoHeader4.FormatSerial(serial));
logEntry.AppendLine();
response.Write(new byte[] { 0x00, 0x00 }, 0, 2); // result code (0 for OK)
response.Write(BitConverter.GetBytes(serial), 0, 8);

View File

@@ -91,7 +91,7 @@ namespace PkmnFoundations.GlobalTerminalService
break;
}
logEntry.AppendFormat("Musical {0} uploaded successfully.", record.SerialNumber);
logEntry.AppendFormat("Musical {0} uploaded successfully.", serial);
logEntry.AppendLine();
response.Write(new byte[] { 0x00, 0x00 }, 0, 2); // result code (0 for OK)
response.Write(BitConverter.GetBytes(serial), 0, 8);
@@ -158,7 +158,7 @@ namespace PkmnFoundations.GlobalTerminalService
break;
}
logEntry.AppendFormat("Battle video {0} uploaded successfully.", BattleVideoHeader4.FormatSerial(record.SerialNumber));
logEntry.AppendFormat("Battle video {0} uploaded successfully.", BattleVideoHeader4.FormatSerial(serial));
logEntry.AppendLine();
response.Write(new byte[] { 0x00, 0x00 }, 0, 2); // result code (0 for OK)
response.Write(BitConverter.GetBytes(serial), 0, 8);

View File

@@ -1083,7 +1083,7 @@ namespace PkmnFoundations.Data
new MySqlParameter("@key", key));
// todo: make a proc to insert both video and party.
InsertBattleVideoParty4(record.Header, (ulong)key, tran);
InsertBattleVideoParty4(record.Header, key, tran);
tran.Commit();
return serial;
@@ -1422,7 +1422,7 @@ namespace PkmnFoundations.Data
new MySqlParameter("@key", key));
// todo: make a proc to insert both video and party.
InsertBattleVideoParty5(record.Header, (ulong)key, tran);
InsertBattleVideoParty5(record.Header, key, tran);
tran.Commit();
return serial;