|
@@ -1326,7 +1326,7 @@ def generate_vs_project(env, original_args, project_name="godot"):
|
|
|
|
|
|
filters_template = filters_template.replace("%%HASH%%", md5)
|
|
filters_template = filters_template.replace("%%HASH%%", md5)
|
|
|
|
|
|
- with open(f"{project_name}.vcxproj.filters", "w", encoding="utf-8", newline="\n") as f:
|
|
|
|
|
|
+ with open(f"{project_name}.vcxproj.filters", "w", encoding="utf-8", newline="\r\n") as f:
|
|
f.write(filters_template)
|
|
f.write(filters_template)
|
|
|
|
|
|
envsources = []
|
|
envsources = []
|
|
@@ -1507,7 +1507,7 @@ def generate_vs_project(env, original_args, project_name="godot"):
|
|
props_template = props_template.replace("%%CLEAN%%", cmd)
|
|
props_template = props_template.replace("%%CLEAN%%", cmd)
|
|
|
|
|
|
with open(
|
|
with open(
|
|
- f"{project_name}.{platform}.{target}.{arch}.generated.props", "w", encoding="utf-8", newline="\n"
|
|
|
|
|
|
+ f"{project_name}.{platform}.{target}.{arch}.generated.props", "w", encoding="utf-8", newline="\r\n"
|
|
) as f:
|
|
) as f:
|
|
f.write(props_template)
|
|
f.write(props_template)
|
|
|
|
|
|
@@ -1624,7 +1624,7 @@ def generate_vs_project(env, original_args, project_name="godot"):
|
|
sln_template = sln_template.replace("%%SECTION1%%", "\n ".join(section1))
|
|
sln_template = sln_template.replace("%%SECTION1%%", "\n ".join(section1))
|
|
sln_template = sln_template.replace("%%SECTION2%%", "\n ".join(section2))
|
|
sln_template = sln_template.replace("%%SECTION2%%", "\n ".join(section2))
|
|
|
|
|
|
- with open(f"{project_name}.sln", "w", encoding="utf-8", newline="\n") as f:
|
|
|
|
|
|
+ with open(f"{project_name}.sln", "w", encoding="utf-8", newline="\r\n") as f:
|
|
f.write(sln_template)
|
|
f.write(sln_template)
|
|
|
|
|
|
if get_bool(original_args, "vsproj_gen_only", True):
|
|
if get_bool(original_args, "vsproj_gen_only", True):
|