mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-08-08 14:58:08 +00:00
open generated files as binary so we have consistent line endings across
Linux and Windows
This commit is contained in:
committed by
Ryan Fleury
parent
5089a01058
commit
9447cce94d
@@ -533,7 +533,7 @@ entry_point(CmdLine *cmdline)
|
|||||||
c_path = push_str8f(mg_arena, "%S/%S", layer_generated_folder, str8_skip_last_slash(layer->c_name_override));
|
c_path = push_str8f(mg_arena, "%S/%S", layer_generated_folder, str8_skip_last_slash(layer->c_name_override));
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
FILE *h = fopen((char *)h_path.str, "w");
|
FILE *h = fopen((char *)h_path.str, "wb");
|
||||||
fprintf(h, "// Copyright (c) Epic Games Tools\n");
|
fprintf(h, "// Copyright (c) Epic Games Tools\n");
|
||||||
fprintf(h, "// Licensed under the MIT license (https://opensource.org/license/mit/)\n\n");
|
fprintf(h, "// Licensed under the MIT license (https://opensource.org/license/mit/)\n\n");
|
||||||
if(layer->h_header.first == 0)
|
if(layer->h_header.first == 0)
|
||||||
@@ -589,7 +589,7 @@ entry_point(CmdLine *cmdline)
|
|||||||
fclose(h);
|
fclose(h);
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
FILE *c = fopen((char *)c_path.str, "w");
|
FILE *c = fopen((char *)c_path.str, "wb");
|
||||||
fprintf(c, "// Copyright (c) Epic Games Tools\n");
|
fprintf(c, "// Copyright (c) Epic Games Tools\n");
|
||||||
fprintf(c, "// Licensed under the MIT license (https://opensource.org/license/mit/)\n\n");
|
fprintf(c, "// Licensed under the MIT license (https://opensource.org/license/mit/)\n\n");
|
||||||
if(layer->c_header.first == 0)
|
if(layer->c_header.first == 0)
|
||||||
|
|||||||
Reference in New Issue
Block a user