ref: 1bf1be8acf59d6ef12aeea053e7f45a4510bf150
parent: 00495a8386b97a693869409adabf5ef523e9a99b
author: laamaa <jonne.kokkonen@gmail.com>
date: Wed Mar 8 05:46:21 EST 2023
fix gh actions deprecations
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -38,9 +38,8 @@
update: true
install: mingw-w64-${{ matrix.env }}-toolchain make mingw-w64-${{ matrix.env }}-SDL2 mingw-w64-${{ matrix.env }}-libserialport zip dos2unix- - name: 'Get current date'
- id: date
- run: echo "::set-output name=date::$(date +%Y%m%d)"
+ - name: Set current date as env variable
+ run: echo "NOW=$(date +'%Y-%m-%d')" >> $GITHUB_ENV
- name: 'Build package'
run: |
@@ -61,7 +60,7 @@
if: matrix.win == 'win32'
uses: actions/upload-artifact@v3
with:
- name: m8c-${{ steps.date.outputs.date }}-${{ matrix.win }}+ name: m8c-${{ env.NOW }}-${{ matrix.win }}path: |
m8c.exe
SDL2.dll
@@ -99,9 +98,8 @@
- name: 'Checkout'
uses: actions/checkout@v3
- - name: 'Get current date'
- id: date
- run: echo "::set-output name=date::$(date +%Y%m%d)"
+ - name: Set current date as env variable
+ run: echo "NOW=$(date +'%Y-%m-%d')" >> $GITHUB_ENV
- name: 'Build package'
run: |
@@ -109,7 +107,7 @@
- name: 'Upload artifact'
uses: actions/upload-artifact@v3
with:
- name: m8c-${{ steps.date.outputs.date }}-linux+ name: m8c-${{ env.NOW }}-linuxpath: |
LICENSE
README.md
--- a/config.c
+++ b/config.c
@@ -25,7 +25,7 @@
c.init_fullscreen = 0; // default fullscreen state at load
c.init_use_gpu = 1; // default to use hardware acceleration
c.idle_ms = 10; // default to high performance
- c.wait_for_device = 0; // default to exit if device disconnected
+ c.wait_for_device = 1; // default to exit if device disconnected
c.wait_packets = 1024; // default zero-byte attempts to disconnect (about 2 sec for default idle_ms)
c.key_up = SDL_SCANCODE_UP;
--
⑨