mirror of
https://github.com/mm201/pkmn-classic-framework.git
synced 2026-09-29 12:56:28 -05:00
Fixed GTServer showing 0 for every upload ID in logs.
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user