Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
14 changes: 13 additions & 1 deletion lib/tasks/red.rake
Original file line number Diff line number Diff line change
Expand Up @@ -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"',
Expand All @@ -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!

Expand Down