don't add extra newlines when downloading scripts via tpt.getscript
This commit is contained in:
parent
dc679d7eb0
commit
9a9f80fefa
@ -1901,7 +1901,7 @@ int luatpt_getscript(lua_State* l)
|
|||||||
outputfile = NULL;
|
outputfile = NULL;
|
||||||
if (!confirmPrompt || ConfirmPrompt::Blocking("File already exists, overwrite?", filename, "Overwrite"))
|
if (!confirmPrompt || ConfirmPrompt::Blocking("File already exists, overwrite?", filename, "Overwrite"))
|
||||||
{
|
{
|
||||||
outputfile = fopen(filename, "w");
|
outputfile = fopen(filename, "wb");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -1911,7 +1911,7 @@ int luatpt_getscript(lua_State* l)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
outputfile = fopen(filename, "w");
|
outputfile = fopen(filename, "wb");
|
||||||
}
|
}
|
||||||
if (!outputfile)
|
if (!outputfile)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user