Skip to content
This repository was archived by the owner on Jan 4, 2026. It is now read-only.

Commit e10611e

Browse files
authored
ci: fix CI builds (#13)
* fix: close and minimize buttons not being perfectly the same across forms * ci: update actions versions * style: add missing tab * refactor: reduce indentation in SendFunkeyViaMB()
1 parent a12fc79 commit e10611e

14 files changed

+51
-51
lines changed

.github/workflows/nightly.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,17 @@ jobs:
2828
uses: actions/checkout@v4
2929

3030
- name: Setup MSBuild
31-
uses: microsoft/setup-msbuild@v1
31+
uses: microsoft/setup-msbuild@v2
3232

3333
- name: Setup NuGet
34-
uses: NuGet/setup-nuget@v1
34+
uses: NuGet/setup-nuget@v2
3535

3636
- name: Restore Packages
3737
run: nuget restore ${{ env.solutionFile }}
3838

3939
- name: Get version from update.xml
4040
id: getVersion
41-
uses: mavrosxristoforos/get-xml-info@1.2.1
41+
uses: mavrosxristoforos/get-xml-info@2.0
4242
with:
4343
xml-file: update.xml
4444
xpath: //update/@version
@@ -61,7 +61,7 @@ jobs:
6161
run: msbuild ${{ env.solutionFile }} -t:rebuild -property:Configuration=${{ matrix.configuration }}
6262

6363
- name: Upload the build results as an artifact
64-
uses: actions/upload-artifact@v3
64+
uses: actions/upload-artifact@v4
6565
with:
6666
path: ${{ env.projectFolder }}/bin/${{ matrix.configuration }}/*
6767
name: ${{ env.projectName }}.Nightly.${{ matrix.configuration }}

.github/workflows/release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,17 +34,17 @@ jobs:
3434
git config user.email "<>"
3535
3636
- name: Setup MSBuild
37-
uses: microsoft/setup-msbuild@v1
37+
uses: microsoft/setup-msbuild@v2
3838

3939
- name: Setup NuGet
40-
uses: NuGet/setup-nuget@v1
40+
uses: NuGet/setup-nuget@v2
4141

4242
- name: Restore Packages
4343
run: nuget restore ${{ env.solutionFile }}
4444

4545
- name: Get version from release name
4646
id: version
47-
uses: mad9000/actions-find-and-replace-string@4
47+
uses: mad9000/actions-find-and-replace-string@5
4848
with:
4949
source: "${{ github.event.release.tag_name }}"
5050
find: "v"
@@ -68,7 +68,7 @@ jobs:
6868
run: msbuild ${{ env.solutionFile }} -t:rebuild -property:Configuration=${{ matrix.configuration }}
6969

7070
- name: Upload the build results as an artifact
71-
uses: actions/upload-artifact@v3
71+
uses: actions/upload-artifact@v4
7272
with:
7373
path: ${{ env.projectFolder }}/bin/${{ matrix.configuration }}/*
7474
name: ${{ env.projectName }}.${{ github.event.release.tag_name }}.${{ matrix.configuration }}

FunkeySelector/CustomFManager.cs

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -70,34 +70,34 @@ public static void SendFunkeyViaMB(string funkeyID)
7070
if (gamePtr == IntPtr.Zero)
7171
{
7272
MessageBox.Show("There is no instance of U.B. Funkeys currently running.", "FunkeySelectorGUI", MessageBoxButtons.OK, MessageBoxIcon.Error);
73+
return;
7374
}
74-
else
75+
76+
IntPtr ptrCopyData = IntPtr.Zero;
77+
try
7578
{
76-
IntPtr ptrCopyData = IntPtr.Zero;
77-
try
79+
COPYDATASTRUCT copyData = new()
7880
{
79-
COPYDATASTRUCT copyData = new COPYDATASTRUCT
80-
{
81-
dwData = new IntPtr(238164658), //A strange data type that's required for the game to switch the Bitty.
82-
cbData = idtosend.Length + 1,
83-
lpData = Marshal.StringToHGlobalAnsi(idtosend)
84-
};
81+
dwData = new IntPtr(238164658), // A strange data type that's required for the game to switch the Bitty.
82+
cbData = idtosend.Length + 1,
83+
lpData = Marshal.StringToHGlobalAnsi(idtosend)
84+
};
8585

86-
ptrCopyData = Marshal.AllocCoTaskMem(Marshal.SizeOf(copyData));
87-
Marshal.StructureToPtr(copyData, ptrCopyData, false);
86+
ptrCopyData = Marshal.AllocCoTaskMem(Marshal.SizeOf(copyData));
87+
Marshal.StructureToPtr(copyData, ptrCopyData, false);
8888

89-
SendMessage(gamePtr, WM_COPYDATA, IntPtr.Zero, ptrCopyData);
90-
}
91-
catch (Exception ex)
92-
{
93-
MessageBox.Show(ex.ToString(), "FunkeySelectorGUI", MessageBoxButtons.OK, MessageBoxIcon.Error);
94-
}
95-
finally
96-
{
97-
if (ptrCopyData != IntPtr.Zero)
98-
Marshal.FreeCoTaskMem(ptrCopyData);
99-
}
89+
SendMessage(gamePtr, WM_COPYDATA, IntPtr.Zero, ptrCopyData);
90+
}
91+
catch (Exception ex)
92+
{
93+
MessageBox.Show(ex.ToString(), "FunkeySelectorGUI", MessageBoxButtons.OK, MessageBoxIcon.Error);
94+
}
95+
finally
96+
{
97+
if (ptrCopyData != IntPtr.Zero)
98+
Marshal.FreeCoTaskMem(ptrCopyData);
10099
}
100+
101101
}
102102
}
103103
}

FunkeySelector/CustomFunkeys.Designer.cs

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

FunkeySelector/DaydreamOasis.Designer.cs

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

FunkeySelector/FunkikiIsland.Designer.cs

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

FunkeySelector/HiddenRealm.Designer.cs

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

FunkeySelector/LaputtaStation.Designer.cs

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

FunkeySelector/MagmaGorge.Designer.cs

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

FunkeySelector/NightmareRift.Designer.cs

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)