mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-08-20 09:57:09 +00:00
Merge remote-tracking branch 'smartcmd/main' into feature/plugin-api
This commit is contained in:
commit
9f013dbb7f
48
.github/workflows/clang-format.yml
vendored
48
.github/workflows/clang-format.yml
vendored
|
|
@ -1,48 +0,0 @@
|
||||||
name: Check formatting
|
|
||||||
|
|
||||||
on:
|
|
||||||
pull_request:
|
|
||||||
paths:
|
|
||||||
- '**'
|
|
||||||
- '!.gitignore'
|
|
||||||
- '!*.md'
|
|
||||||
- '!.github/**'
|
|
||||||
- '.github/workflows/clang-format.yml'
|
|
||||||
|
|
||||||
permissions:
|
|
||||||
contents: read
|
|
||||||
pull-requests: write
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
format-check:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v6
|
|
||||||
with:
|
|
||||||
ref: ${{ github.event.pull_request.head.sha }}
|
|
||||||
fetch-depth: 0
|
|
||||||
|
|
||||||
- name: Fetch base commit
|
|
||||||
run: git fetch origin ${{ github.event.pull_request.base.sha }}
|
|
||||||
|
|
||||||
- name: Install clang-format-20
|
|
||||||
run: |
|
|
||||||
wget -qO- https://apt.llvm.org/llvm-snapshot.gpg.key | sudo tee /etc/apt/trusted.gpg.d/apt.llvm.org.asc
|
|
||||||
sudo add-apt-repository -y "deb http://apt.llvm.org/noble/ llvm-toolchain-noble-20 main"
|
|
||||||
sudo apt-get install -y -qq clang-format-20
|
|
||||||
|
|
||||||
- uses: reviewdog/action-setup@v1
|
|
||||||
|
|
||||||
- name: Check formatting on changed lines
|
|
||||||
env:
|
|
||||||
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
run: |
|
|
||||||
git clang-format-20 --binary clang-format-20 \
|
|
||||||
--diff ${{ github.event.pull_request.base.sha }} -- \
|
|
||||||
'*.c' '*.cpp' '*.cc' '*.h' '*.hpp' \
|
|
||||||
| reviewdog \
|
|
||||||
-name="clang-format" \
|
|
||||||
-f=diff \
|
|
||||||
-reporter=github-pr-check \
|
|
||||||
-fail-level=error \
|
|
||||||
-filter-mode=added
|
|
||||||
11
.github/workflows/nightly-server.yml
vendored
11
.github/workflows/nightly-server.yml
vendored
|
|
@ -6,12 +6,11 @@ on:
|
||||||
branches:
|
branches:
|
||||||
- 'main'
|
- 'main'
|
||||||
- 'feature/plugin-api'
|
- 'feature/plugin-api'
|
||||||
paths:
|
paths-ignore:
|
||||||
- '**'
|
- '.gitignore'
|
||||||
- '!.gitignore'
|
- '*.md'
|
||||||
- '!*.md'
|
- '.github/**'
|
||||||
- '!.github/**'
|
- '!.github/workflows/nightly-server.yml'
|
||||||
- '.github/workflows/nightly-server.yml'
|
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
|
|
|
||||||
11
.github/workflows/nightly.yml
vendored
11
.github/workflows/nightly.yml
vendored
|
|
@ -5,12 +5,11 @@ on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- 'main'
|
- 'main'
|
||||||
paths:
|
paths-ignore:
|
||||||
- '**'
|
- '.gitignore'
|
||||||
- '!.gitignore'
|
- '*.md'
|
||||||
- '!*.md'
|
- '.github/**'
|
||||||
- '!.github/**'
|
- '!.github/workflows/nightly.yml'
|
||||||
- '.github/workflows/nightly.yml'
|
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
|
|
|
||||||
10
.github/workflows/pull-request.yml
vendored
10
.github/workflows/pull-request.yml
vendored
|
|
@ -4,12 +4,10 @@ on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
pull_request:
|
pull_request:
|
||||||
types: [opened, reopened, synchronize]
|
types: [opened, reopened, synchronize]
|
||||||
paths:
|
paths-ignore:
|
||||||
- '**'
|
- '.gitignore'
|
||||||
- '!.gitignore'
|
- '*.md'
|
||||||
- '!*.md'
|
- '.github/*.md'
|
||||||
- '!.github/**'
|
|
||||||
- '.github/workflows/pull-request.yml'
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
|
|
||||||
|
|
@ -557,8 +557,8 @@ int UIScene_LaunchMoreOptionsMenu::KeyboardCompleteSeedCallback(LPVOID lpParam,b
|
||||||
uint16_t pchText[128];
|
uint16_t pchText[128];
|
||||||
ZeroMemory(pchText, 128 * sizeof(uint16_t));
|
ZeroMemory(pchText, 128 * sizeof(uint16_t));
|
||||||
Win64_GetKeyboardText(pchText, 128);
|
Win64_GetKeyboardText(pchText, 128);
|
||||||
pClass->m_editSeed.setLabel((wchar_t *)pchText);
|
pClass->m_editSeed.setLabel(reinterpret_cast<wchar_t*>(pchText));
|
||||||
pClass->m_params->seed = (wchar_t *)pchText;
|
pClass->m_params->seed = static_cast<wstring>(reinterpret_cast<wchar_t*>(pchText));
|
||||||
#else
|
#else
|
||||||
#ifdef __PSVITA__
|
#ifdef __PSVITA__
|
||||||
uint16_t pchText[2048];
|
uint16_t pchText[2048];
|
||||||
|
|
@ -584,7 +584,7 @@ void UIScene_LaunchMoreOptionsMenu::getDirectEditInputs(vector<UIControl_TextInp
|
||||||
void UIScene_LaunchMoreOptionsMenu::onDirectEditFinished(UIControl_TextInput *input, UIControl_TextInput::EDirectEditResult result)
|
void UIScene_LaunchMoreOptionsMenu::onDirectEditFinished(UIControl_TextInput *input, UIControl_TextInput::EDirectEditResult result)
|
||||||
{
|
{
|
||||||
if (result == UIControl_TextInput::eDirectEdit_Confirmed)
|
if (result == UIControl_TextInput::eDirectEdit_Confirmed)
|
||||||
m_params->seed = input->getEditBuffer();
|
m_params->seed = static_cast<wstring>(input->getEditBuffer());
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,12 @@
|
||||||
services:
|
services:
|
||||||
minecraft-lce-dedicated-server:
|
minecraft-lce-dedicated-server:
|
||||||
image: ghcr.io/kuwacom/minecraft-lce-dedicated-server:nightly
|
image: ghcr.io/smartcmd/minecraft-lce-dedicated-server:nightly
|
||||||
container_name: minecraft-lce-dedicated-server
|
container_name: minecraft-lce-dedicated-server
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
tty: true
|
tty: true
|
||||||
stdin_open: true
|
stdin_open: true
|
||||||
environment:
|
environment:
|
||||||
TZ: ${TZ:-Asia/Tokyo}
|
TZ: ${TZ:-Etc/UTC}
|
||||||
WINEARCH: win64
|
WINEARCH: win64
|
||||||
WINEPREFIX: /var/opt/wineprefix64
|
WINEPREFIX: /var/opt/wineprefix64
|
||||||
WINEDEBUG: -all
|
WINEDEBUG: -all
|
||||||
|
|
@ -15,12 +15,15 @@ services:
|
||||||
# minimum required virtual screen
|
# minimum required virtual screen
|
||||||
XVFB_DISPLAY: ${XVFB_DISPLAY:-:99}
|
XVFB_DISPLAY: ${XVFB_DISPLAY:-:99}
|
||||||
XVFB_SCREEN: ${XVFB_SCREEN:-720x1280x16}
|
XVFB_SCREEN: ${XVFB_SCREEN:-720x1280x16}
|
||||||
|
# ip & port the server will run on
|
||||||
|
SERVER_BIND_IP: ${SERVER_BIND_IP:-0.0.0.0}
|
||||||
|
SERVER_PORT: ${SERVER_PORT:-25565}
|
||||||
volumes:
|
volumes:
|
||||||
# - wineprefix64:/var/opt/wineprefix64
|
# - wineprefix64:/var/opt/wineprefix64
|
||||||
- ./server-data:/srv/persist
|
- ./server-data:/srv/persist
|
||||||
ports:
|
ports:
|
||||||
- "25565:25565/tcp"
|
- "$SERVER_PORT:$SERVER_PORT/tcp"
|
||||||
- "25565:25565/udp"
|
- "$SERVER_PORT:$SERVER_PORT/udp"
|
||||||
stop_grace_period: 30s
|
stop_grace_period: 30s
|
||||||
|
|
||||||
# volumes:
|
# volumes:
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ services:
|
||||||
tty: true
|
tty: true
|
||||||
stdin_open: true
|
stdin_open: true
|
||||||
environment:
|
environment:
|
||||||
TZ: ${TZ:-Asia/Tokyo}
|
TZ: ${TZ:-Etc/UTC}
|
||||||
WINEARCH: win64
|
WINEARCH: win64
|
||||||
WINEPREFIX: /var/opt/wineprefix64
|
WINEPREFIX: /var/opt/wineprefix64
|
||||||
WINEDEBUG: -all
|
WINEDEBUG: -all
|
||||||
|
|
@ -18,13 +18,16 @@ services:
|
||||||
SERVER_CLI_INPUT_MODE: ${SERVER_CLI_INPUT_MODE:-stream}
|
SERVER_CLI_INPUT_MODE: ${SERVER_CLI_INPUT_MODE:-stream}
|
||||||
# minimum required virtual screen
|
# minimum required virtual screen
|
||||||
XVFB_DISPLAY: ${XVFB_DISPLAY:-:99}
|
XVFB_DISPLAY: ${XVFB_DISPLAY:-:99}
|
||||||
XVFB_SCREEN: ${XVFB_SCREEN:-64x64x16}
|
XVFB_SCREEN: ${XVFB_SCREEN:-720x1280x16}
|
||||||
|
# ip & port the server will run on
|
||||||
|
SERVER_BIND_IP: ${SERVER_BIND_IP:-0.0.0.0}
|
||||||
|
SERVER_PORT: ${SERVER_PORT:-25565}
|
||||||
volumes:
|
volumes:
|
||||||
# - wineprefix64:/var/opt/wineprefix64
|
# - wineprefix64:/var/opt/wineprefix64
|
||||||
- ./server-data:/srv/persist
|
- ./server-data:/srv/persist
|
||||||
ports:
|
ports:
|
||||||
- "25565:25565/tcp"
|
- "$SERVER_PORT:$SERVER_PORT/tcp"
|
||||||
- "25565:25565/udp"
|
- "$SERVER_PORT:$SERVER_PORT/udp"
|
||||||
stop_grace_period: 30s
|
stop_grace_period: 30s
|
||||||
|
|
||||||
# volumes:
|
# volumes:
|
||||||
|
|
|
||||||
|
|
@ -3,9 +3,8 @@ set -euo pipefail
|
||||||
|
|
||||||
SERVER_DIR="/srv/mc"
|
SERVER_DIR="/srv/mc"
|
||||||
SERVER_EXE="Minecraft.Server.exe"
|
SERVER_EXE="Minecraft.Server.exe"
|
||||||
# ip & port are fixed since they run inside the container
|
SERVER_PORT="${SERVER_PORT:-25565}"
|
||||||
SERVER_PORT="25565"
|
SERVER_BIND_IP="${SERVER_BIND_IP:-0.0.0.0}"
|
||||||
SERVER_BIND_IP="0.0.0.0"
|
|
||||||
|
|
||||||
PERSIST_DIR="/srv/persist"
|
PERSIST_DIR="/srv/persist"
|
||||||
WINE_CMD=""
|
WINE_CMD=""
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue