Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix CorsixTH savegame functionality by fixing the keyboard letterpicker input #10

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

RkShaRkz
Copy link

@RkShaRkz RkShaRkz commented Nov 6, 2023

This PR focuses on fixing the CorsixTH saving function by enabling keyboard input to enter the file's name.

It first unzips the corsixth.zip to a CorsixTH folder, fixes the launch script to allow text input, rezips the folder and finally gets rid of the working folder.

Script changes:

BEFORE

cd $GAMEDIR

$ESUDO chmod 666 /dev/tty1
$ESUDO chmod 666 /dev/uinput
$GPTOKEYB "corsix-th" -c "$GPTOKEYB_CONFIG" &

AFTER

export TEXTINPUTINTERACTIVE="Y"
export TEXTINPUTNOAUTOCAPITALS="Y"
cd $GAMEDIR

$ESUDO chmod 666 /dev/tty1
$ESUDO chmod 666 /dev/uinput
$GPTOKEYB "corsix-th" $HOTKEY textinput -c "$GPTOKEYB_CONFIG" &

Before the fix:
when trying to save the game and clicking "Save" nothing would happen because the filename would remain empty due to inability to enter anything

After the fix:
when trying to save the game the filename can be changed with the Start+DPAD so that once "Save" is clicked, the game is actually saved.

Expected behaviour:

  • filename should be enterable
  • savegame file should appear
  • savegame file should be loadable

@RkShaRkz RkShaRkz changed the title Fixes/corsix th fix letterpicker Fix CorsixTH savegame functionality by fixing the keyboard letterpicker input Nov 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant