From 3f7ba6a4a1f30355c5148174f65d9bc83797a2b3 Mon Sep 17 00:00:00 2001 From: Eliza Velasquez <4576666+elizagamedev@users.noreply.github.com> Date: Wed, 17 Jun 2020 20:02:33 -0700 Subject: [PATCH] final Linux bugfixes? hopefully --- binding-mri/niko-binding.cpp | 2 +- journal/unix/journal.py | 3 ++- make-appimage.sh | 2 ++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/binding-mri/niko-binding.cpp b/binding-mri/niko-binding.cpp index a73ac0e..036900d 100644 --- a/binding-mri/niko-binding.cpp +++ b/binding-mri/niko-binding.cpp @@ -163,7 +163,7 @@ RB_METHOD(nikoStart) x += NIKO_X; y += NIKO_Y; char message[32]; - sprintf(message, "%d,%d", x, y); + sprintf(message, "%d,%d\n", x, y); SDL_LockMutex(mutex); message_len = strlen(message); diff --git a/journal/unix/journal.py b/journal/unix/journal.py index 471c4bc..4442b15 100644 --- a/journal/unix/journal.py +++ b/journal/unix/journal.py @@ -81,7 +81,8 @@ class AnimationTimer(PipeThread): if len(message) > 0: m = message.decode() if not ',' in m: pass - x, y = m.split(',') + last_line = m.splitlines()[-1] + x, y = last_line.split(',') self.start_animation.emit(int(x), int(y)) while True: diff --git a/make-appimage.sh b/make-appimage.sh index 51365a1..69ca663 100755 --- a/make-appimage.sh +++ b/make-appimage.sh @@ -36,6 +36,8 @@ for dir in Audio Data Fonts Graphics Languages Wallpaper testing_saves testing_s [ -d "$unix_content_path/$dir/" ] && rsync -a "$unix_content_path/$dir/" "$appdir/usr/bin/$dir/" done find "$appdir/usr/bin" \( -iname '*.bmp' -o -iname 'thumbs.db' -o -iname '*.ini' \) -delete +# copyright :( +find "$appdir/usr/bin" \( -iname '*.loc' -a \! -iname 'en.loc' \) -delete cp -af "$conan_install_path/bin/Data/xScripts.rxdata" "$appdir/usr/bin/Data/" # Create AppImage