26 lines
1.1 KiB
PowerShell
26 lines
1.1 KiB
PowerShell
$files = Get-ChildItem -Path "A:\AeThex-Engine-Core\engine" -Recurse -Include "*.cpp","*.h" -File
|
|
$count = 0
|
|
foreach ($file in $files) {
|
|
$content = Get-Content $file.FullName -Raw
|
|
if ($content -match "GODOT ENGINE") {
|
|
$newContent = $content -replace "GODOT ENGINE", "AETHEX ENGINE"
|
|
$newContent = $newContent -replace "https://godotengine\.org", "https://aethex.dev"
|
|
Set-Content -Path $file.FullName -Value $newContent -NoNewline
|
|
$count++
|
|
}
|
|
}
|
|
Write-Host "Updated $count C++ files"
|
|
|
|
# Also do Python files
|
|
$pyfiles = Get-ChildItem -Path "A:\AeThex-Engine-Core\engine" -Recurse -Include "*.py" -File
|
|
$pycount = 0
|
|
foreach ($file in $pyfiles) {
|
|
$content = Get-Content $file.FullName -Raw
|
|
if ($content -match "GODOT ENGINE") {
|
|
$newContent = $content -replace "GODOT ENGINE", "AETHEX ENGINE"
|
|
$newContent = $newContent -replace "https://godotengine\.org", "https://aethex.dev"
|
|
Set-Content -Path $file.FullName -Value $newContent -NoNewline
|
|
$pycount++
|
|
}
|
|
}
|
|
Write-Host "Updated $pycount Python files"
|