From 8fc4cb01340b9f16a57213ce85d2d409d4faf723 Mon Sep 17 00:00:00 2001 From: Mathieu Comandon Date: Mon, 1 May 2017 02:10:51 -0700 Subject: [PATCH] Convert FS-UAE disk paths to absolute paths --- lutris/runners/fsuae.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/lutris/runners/fsuae.py b/lutris/runners/fsuae.py index 70efc4124..6e006f083 100644 --- a/lutris/runners/fsuae.py +++ b/lutris/runners/fsuae.py @@ -1,3 +1,4 @@ +import os from lutris.runners.runner import Runner from lutris.util.display import get_current_resolution @@ -115,8 +116,12 @@ class fsuae(Runner): floppy_drives = [] floppy_images = [] for drive, disk in enumerate(disks): - floppy_drives.append("--%s_%d=%s" % (disk_param, drive, disk)) - floppy_images.append("--floppy_image_%d=%s" % (drive, disk)) + if not os.path.isabs(disk): + disk_path = os.path.join(self.game_path, disk) + else: + disk_path = disk + floppy_drives.append("--%s_%d=%s" % (disk_param, drive, disk_path)) + floppy_images.append("--floppy_image_%d=%s" % (drive, disk_path)) return floppy_drives + floppy_images def get_params(self):