This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <unistd.h> | |
#include <errno.h> | |
#include <string.h> | |
#define PIPE_READ 0 | |
#define PIPE_WRITE 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Define the directory to search for .acmi files | |
$directory = "." | |
# Get the most recently modified .zip.acmi file that does not have a backup file | |
$latestFile = Get-ChildItem -Path $directory -Filter *.zip.acmi | Where-Object { -not (Test-Path "$($_.FullName).bak") } | Sort-Object LastWriteTime -Descending | Select-Object -First 1 | |
if (-not $latestFile) { | |
Write-Output "No unprocessed .zip.acmi files found in the directory." | |
exit 1 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8" standalone="yes" ?> | |
<DefaultPropertiesCollection LoadingOrder="0.5"> | |
<DefaultProperties Id="Core.AntiAircraft" Base="Core.Vehicle"> | |
<Criteria> | |
<Type>Ground</Type> | |
</Criteria> | |
</DefaultProperties> | |
</DefaultPropertiesCollection> | |
<!-- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fs = require('fs'); | |
const readline = require('readline'); | |
async function parseFile(filePath) { | |
const fileStream = fs.createReadStream(filePath); | |
const rl = readline.createInterface({ | |
input: fileStream, | |
crlfDelay: Infinity | |
}); |