Good evening again, so just to confirm i understood you correctly.
i ran a powershell script which does what it is supposed to do, if i understood you correctly:
# Define the folder to search
$folder = "C:/IOS_PROJECT_GPT/Il2CppOutputProject/Source/il2cppOutput/"
# Get all C++ files in the folder and its subfolders
$cppFiles = Get-ChildItem $folder -Recurse -Filter "*.cpp"
# Loop through each C++ file and add "\n" to the beginning
foreach ($file in $cppFiles) {
# Read the file contents
$content = Get-Content $file.FullName
# Add "\n" to the beginning of the file contents
$content = "\n" + $content
# Write the modified file contents back to the file
Set-Content $file.FullName $content
}
which results in this for the example file: "UnityEngine.TextCoreTextEngineModule1.cpp"
\n#include "pch-cpp.hpp" struct Dictionary_2_tC20B3D6AE4370C892734F670EF4D1FB9CE91F371; .....
This is how you meant it to be, right? this still outputs:
C:/IOS_PROJECT/Il2CppOutputProject/Source/il2cppOutput/UnityEngine.TextCoreTextEngineModule1.cpp:1:13: fatal error: 'pch-cpp.hpp' file not found
<U+FEFF>#include "pch-cpp.hpp"
thanks again :)