mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/GabsPuNs-MinecraftConsoles.git
synced 2026-05-31 17:34:52 +00:00
Use BYTE Win Typedef instead of byte typedef from Minecraft.World
"byte" wasnt working anymore for some reason
This commit is contained in:
@@ -31,14 +31,14 @@ ConsoleSaveFileOutputStream::ConsoleSaveFileOutputStream(ConsoleSaveFile *saveFi
|
||||
m_saveFile->setFilePointer( m_file, 0, nullptr, FILE_BEGIN );
|
||||
}
|
||||
|
||||
//Writes the specified byte to this file output stream. Implements the write method of OutputStream.
|
||||
//Writes the specified BYTE to this file output stream. Implements the write method of OutputStream.
|
||||
//Parameters:
|
||||
//b - the byte to be written.
|
||||
//b - the BYTE to be written.
|
||||
void ConsoleSaveFileOutputStream::write(unsigned int b)
|
||||
{
|
||||
DWORD numberOfBytesWritten;
|
||||
|
||||
byte value = static_cast<byte>(b);
|
||||
BYTE value = static_cast<BYTE>(b);
|
||||
|
||||
BOOL result = m_saveFile->writeFile(
|
||||
m_file,
|
||||
@@ -57,7 +57,7 @@ void ConsoleSaveFileOutputStream::write(unsigned int b)
|
||||
}
|
||||
}
|
||||
|
||||
//Writes b.length bytes from the specified byte array to this file output stream.
|
||||
//Writes b.length bytes from the specified BYTE array to this file output stream.
|
||||
//Parameters:
|
||||
//b - the data.
|
||||
void ConsoleSaveFileOutputStream::write(byteArray b)
|
||||
@@ -81,7 +81,7 @@ void ConsoleSaveFileOutputStream::write(byteArray b)
|
||||
}
|
||||
}
|
||||
|
||||
//Writes len bytes from the specified byte array starting at offset off to this file output stream.
|
||||
//Writes len bytes from the specified BYTE array starting at offset off to this file output stream.
|
||||
//Parameters:
|
||||
//b - the data.
|
||||
//off - the start offset in the data.
|
||||
|
||||
Reference in New Issue
Block a user