Skip to content

Commit 423d502

Browse files
committed
添加discordRPC支持
1 parent a74e903 commit 423d502

54 files changed

Lines changed: 480 additions & 2 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
391 KB
Binary file not shown.
391 KB
Binary file not shown.

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -495,8 +495,8 @@ jobs:
495495
icon-path: ./.github/build/windows/${{ env.BUILD_TYPE }}/icon.ico
496496
rc-path: ./.github/build/windows/${{ env.BUILD_TYPE }}/template.rc
497497
love-package: ${{ env.CORE_LOVE_PACKAGE_PATH }}
498-
extra-assets-x86: ./ColdClear/x86/CCloader.dll ./ColdClear/x86/cold_clear.dll
499-
extra-assets-x64: ./ColdClear/x64/CCloader.dll ./ColdClear/x64/cold_clear.dll
498+
extra-assets-x86: ./ColdClear/x86/CCloader.dll ./ColdClear/x86/cold_clear.dll ./.github/build/extraLibs/Windows_x64/discord-rpc.dll
499+
extra-assets-x64: ./ColdClear/x64/CCloader.dll ./ColdClear/x64/cold_clear.dll ./.github/build/extraLibs/Windows_x86/discord-rpc.dll
500500
product-name: ${{ steps.process-app-name.outputs.product-name }}
501501
app-id: ${{ secrets.WINDOWS_APP_ID }}
502502
project-website: https://www.studio26f.org/

main.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -597,6 +597,10 @@ WS.switchHost('www.studio26f.org','8081','/techmino/ws/v1')
597597
HTTP.setHost("www.studio26f.org:8081")
598598
HTTP.setThreadCount(1)
599599

600+
-- Discord RPC
601+
DiscordRPC=require'parts.discordRPC'
602+
DiscordRPC.update()
603+
600604
table.insert(_LOADTIMELIST_,("Load Resources: %.3fs"):format(TIME()-_LOADTIME_))
601605

602606
for i=1,#_LOADTIMELIST_ do LOG(_LOADTIMELIST_[i]) end

0 commit comments

Comments
 (0)