Skip to content

Commit 25491fd

Browse files
committed
Another commit to trigger GitHub Action
1 parent e2863e8 commit 25491fd

File tree

3 files changed

+21
-8
lines changed

3 files changed

+21
-8
lines changed

.github/workflows/build-browser.yml

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,14 @@ jobs:
2626
SOLUTION_FILE_PATH: ./Client App/NetLibBrowser.sln
2727
BUILD_CONFIGURATION: Release
2828
BUILD_PLATFORM: x86
29+
BUILD_PLATFORM2: Win32
30+
BUILD_TOOLSET: v141_xp
2931
BUILD_DIRECTORY: ./Client App/Release
3032
WXWIN: D:/wxWidgets/
3133

3234
steps:
3335
- uses: actions/checkout@v4
36+
- uses: ilammy/msvc-dev-cmd@v1
3437

3538
- name: Download wxWidgets
3639
run: |
@@ -40,10 +43,18 @@ jobs:
4043
git checkout tags/${{ env.WXVERSION }}
4144
git submodule update --init --recursive
4245
46+
cd build/msw
47+
Get-ChildItem *.vcxproj -recurse |
48+
Foreach-Object {
49+
$c = ($_ | Get-Content)
50+
$c = $c -replace 'MultiThreadedDLL','MultiThreaded'
51+
[IO.File]::WriteAllText($_.FullName, ($c -join "`r`n"))
52+
}
53+
4354
- name: Compile wxWidgets
4455
run: |
4556
cd D:/wxWidgets/build/msw
46-
msbuild /m /p:Configuration=Release /p:Platform=Win32 /p:PlatformToolset=v141_xp wx_vc16.sln
57+
msbuild /m /p:Configuration=${{ env.BUILD_CONFIGURATION }} /p:Platform=${{ env.BUILD_PLATFORM2 }} /p:PlatformToolset=${{ env.BUILD_TOOLSET }} /p:RuntimeLibrary=MultiThreaded wx_vc16.sln
4758
4859
- name: Download UNFLoader
4960
run: |
@@ -55,7 +66,7 @@ jobs:
5566
- name: Compile UNFLoader
5667
run: |
5768
cd D:/N64-UNFLoader/UNFLoader
58-
msbuild /m /p:Configuration=Release /p:Platform=Win32 /p:PlatformToolset=v141_xp FlashcartLib_Static.vcxproj
69+
msbuild /m /p:Configuration=${{ env.BUILD_CONFIGURATION }} /p:Platform=${{ env.BUILD_PLATFORM2 }} /p:PlatformToolset=${{ env.BUILD_TOOLSET }} FlashcartLib_Static.vcxproj
5970
6071
- name: Add MSBuild to PATH
6172
uses: microsoft/setup-msbuild@v2
@@ -66,8 +77,10 @@ jobs:
6677
- name: Build NetLib Browser
6778
working-directory: ${{ env.GITHUB_WORKSPACE }}
6879
run: |
69-
xcopy /Y "D:/N64-UNFLoader/UNFLoader/Release/Flashcart.lib" "${{ env.GITHUB_WORKSPACE }}/Client App/Include"
70-
msbuild /m /p:Configuration=${{ env.BUILD_CONFIGURATION }} /p:Platform=${{ env.BUILD_PLATFORM }} "${{ env.SOLUTION_FILE_PATH }}"
80+
cd "Client App/Include/"
81+
Copy-Item "D:/N64-UNFLoader/UNFLoader/Release/Flashcart.lib"
82+
cd ../..
83+
msbuild /m /p:Configuration=${{ env.BUILD_CONFIGURATION }} /p:Platform=${{ env.BUILD_PLATFORM }} /p:PlatformToolset=${{ env.BUILD_TOOLSET }} "${{ env.SOLUTION_FILE_PATH }}"
7184
7285
- name: Upload artifact
7386
uses: actions/upload-artifact@v4
@@ -110,7 +123,7 @@ jobs:
110123
111124
cd UNFLoader
112125
make static
113-
cp -f flashcart.a "${{ env.SOURCES_DIRECTORY }}/Include"
126+
cp -f flashcart.a "../../${{ env.SOURCES_DIRECTORY }}/Include/"
114127
115128
- name: Build NetLib Browser
116129
run: |
@@ -159,7 +172,7 @@ jobs:
159172
160173
cd UNFLoader
161174
make static
162-
cp -f flashcart.a "${{ env.SOURCES_DIRECTORY }}/Include"
175+
cp -f flashcart.a "../../${{ env.SOURCES_DIRECTORY }}/Include/"
163176
164177
- name: Build NetLib Browser
165178
run: |

Client App/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
CODEFILES = app.cpp serverbrowser.cpp customview.cpp clientwindow.cpp romdownloader.cpp packets.cpp helper.cpp sha256.cpp
2-
LIBFILES = Include/ftd2xx.lib
2+
LIBFILES =
33
ifeq ($(DEBUG),1)
44
LIBFILES += Include/flashcart_d.a
55
else

Client App/serverbrowser.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ void ServerBrowser::m_DataViewListCtrl_Servers_OnDataViewListCtrlItemActivated(w
372372
wxMessageDialog dialog(this, wxString("In order to join this server, the ROM '") + romname + wxString("' must be downloaded. This ROM is available to download from the Master Server.\n\nContinue?"), wxString("Download ROM?"), wxICON_QUESTION | wxYES_NO);
373373
if (dialog.ShowModal() == wxID_YES)
374374
{
375-
// Create the ROM download dialog
375+
// Create the ROM download dialog
376376
this->m_DownloadWindow = new ROMDownloadWindow(this);
377377
this->RequestDownload(romhash, rompath);
378378
if (this->m_DownloadWindow->ShowModal() != 1)

0 commit comments

Comments
 (0)