Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
steve02081504 committed Jul 17, 2024
1 parent d6b952a commit 3714638
Show file tree
Hide file tree
Showing 4 changed files with 70 additions and 70 deletions.
6 changes: 3 additions & 3 deletions src/ReadScriptFile.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
elseif (-not $GuestMode) {
Get-Content -LiteralPath $File -Encoding UTF8 -ErrorAction SilentlyContinue -Raw
}
Write-I18n Host ReadingScript @([System.IO.Path]::GetFileName($File),$Content.Length)
Write-I18n Host ReadingScript @([System.IO.Path]::GetFileName($File), $Content.Length)
if (-not $Content) {
Write-I18n Error ReadFileFailed $File -Category ReadError
throw
Expand Down Expand Up @@ -150,7 +150,7 @@ function Preprocessor($Content, $FilePath) {
$Params[$pragmaname] = $value
}
elseif ($ParamList[$pragmaname].ParameterType) {
Write-I18n Warning UnknownPragmaBadParameterType $($pragmaname,$ParamList[$pragmaname].ParameterType)
Write-I18n Warning UnknownPragmaBadParameterType $($pragmaname, $ParamList[$pragmaname].ParameterType)
}
else {
Write-I18n Warning UnknownPragma $pragmaname
Expand Down Expand Up @@ -189,7 +189,7 @@ function Preprocessor($Content, $FilePath) {
foreach ($param in $callsignParams) {
$paramData = $param -split ' ' | ForEach-Object { $_.Trim() }
if ($paramData.Count -eq 1) {
Write-I18n Warning DllExportDelNoneTypeArg $($Matches[2],$paramData[0])
Write-I18n Warning DllExportDelNoneTypeArg $($Matches[2], $paramData[0])
$paramData = @('string', $paramData[0])
}
$DllExportData.params += @{ name = $paramData[1]; type = $paramData[0] }
Expand Down
6 changes: 3 additions & 3 deletions src/programFrames/TinySharp.cs
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ public void Build(string OutFile) {
var file = new MyBuilder().CreateFile(this.Image);

// Put string to print in the padding data.
if (OutSegment!=null)
if (OutSegment != null)
file.ExtraSectionData = this.OutSegment;

file.Write(OutFile);
Expand Down Expand Up @@ -249,7 +249,7 @@ public void SetWin32Icon(string IconFile) {
newResource.AddEntry(0x7f00, newGroup);

// Add resource to PE.
if(this.Image.Resources==null) this.Image.Resources = new ResourceDirectory(0u);
if (this.Image.Resources == null) this.Image.Resources = new ResourceDirectory(0u);
this.Image.Resources.Entries.Insert(0, new ResourceDirectory(ResourceType.Icon));
this.Image.Resources.Entries.Insert(1, new ResourceDirectory(ResourceType.GroupIcon));
newResource.WriteToDirectory(this.Image.Resources);
Expand Down Expand Up @@ -295,7 +295,7 @@ public void SetAssemblyInfo(string description, string company, string title, st
versionResource.AddEntry(varFileInfo);

// Add to resources.
if(this.Image.Resources==null) this.Image.Resources = new ResourceDirectory(0u);
if (this.Image.Resources == null) this.Image.Resources = new ResourceDirectory(0u);
versionResource.WriteToDirectory(this.Image.Resources);
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/programFrames/constexpr.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ private static int Main() {
System.Console.OutputEncoding = new System.Text.UnicodeEncoding();
#endif

#if!noVisualStyles && noConsole
#if !noVisualStyles && noConsole
Application.EnableVisualStyles();
#endif

Expand Down
Loading

0 comments on commit 3714638

Please sign in to comment.