From 4a68cb2dfc197b470508099d0b61ce34d70e2ec9 Mon Sep 17 00:00:00 2001 From: Andrew Denta Date: Tue, 24 Dec 2024 10:00:14 -0500 Subject: [PATCH 1/2] try a linux command --- lib/tasks/red.rake | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/lib/tasks/red.rake b/lib/tasks/red.rake index c3f4d3b..1e192be 100644 --- a/lib/tasks/red.rake +++ b/lib/tasks/red.rake @@ -18,7 +18,7 @@ namespace :red do end end - task launch_game: :environment do + task launch_game_osx: :environment do command = [ '/Applications/RetroArch.app/Contents/MacOS/RetroArch', '-L "/Users/andrew/Library/Application Support/RetroArch/cores/mgba_libretro.dylib"', @@ -30,6 +30,18 @@ namespace :red do puts 'Game launched successfully' end + task launch_game_linux: :environment do + command = [ + 'retroarch', + # '-L "/home/andrew/.config/retroarch/cores/mgba_libretro.so"', + Rails.root.join('db', 'data', 'games', 'firered.gba').to_s, + "--appendconfig=#{Rails.root.join('db', 'data', 'retroarch_config', 'live-savestate.cfg')}" + ].join(' ') + + system(command) + puts 'Game launched successfully' + end + task single_action: :environment do GameMemory.destroy_all! From 5a2434f933a8e7a52703964121578fe9a12d6ba2 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 24 Dec 2024 15:11:05 +0000 Subject: [PATCH 2/2] Bump oj from 3.16.7 to 3.16.8 Bumps [oj](https://github.com/ohler55/oj) from 3.16.7 to 3.16.8. - [Release notes](https://github.com/ohler55/oj/releases) - [Changelog](https://github.com/ohler55/oj/blob/develop/CHANGELOG.md) - [Commits](https://github.com/ohler55/oj/compare/v3.16.7...v3.16.8) --- updated-dependencies: - dependency-name: oj dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- Gemfile.lock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gemfile.lock b/Gemfile.lock index 9438157..4d918f9 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -202,7 +202,7 @@ GEM racc (~> 1.4) nokogiri (1.16.8-x86_64-linux) racc (~> 1.4) - oj (3.16.7) + oj (3.16.8) bigdecimal (>= 3.0) ostruct (>= 0.2) ostruct (0.6.1)