mirror of
https://github.com/gryf/e-uae-wrapper.git
synced 2026-02-11 12:35:46 +01:00
Moving back from floppy module to plain
This commit is contained in:
@@ -1,11 +1,12 @@
|
|||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
"""
|
"""
|
||||||
Floppy class for executing e-uae with specified parameters. This is useful for
|
Plain class for executing e-uae with specified parameters. This is useful for
|
||||||
running things from floppies. It creates new .uaerc file with substituted all
|
running things from floppies. It creates new .uaerc file with substituted all
|
||||||
templates with proper values and run. Floppies usually are unpacked or only
|
templates with proper values and run. Floppies usually are unpacked or only
|
||||||
gzipped (which is supported by emulator itsef) so there is no need to copy
|
gzipped (which is supported by emulator itself) so there is no need to copy
|
||||||
them to temporary place.
|
them to temporary place.
|
||||||
|
Unlike other modules, there is no path changing during running e-uae.
|
||||||
"""
|
"""
|
||||||
import os
|
import os
|
||||||
|
|
||||||
@@ -14,7 +15,7 @@ from e_uae_wrapper import utils
|
|||||||
|
|
||||||
|
|
||||||
class Wrapper(base.Base):
|
class Wrapper(base.Base):
|
||||||
"""Floppy class for running e-uae"""
|
"""Plain class for running e-uae"""
|
||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
"""
|
"""
|
||||||
@@ -25,6 +26,10 @@ class Wrapper(base.Base):
|
|||||||
|
|
||||||
self._run_emulator()
|
self._run_emulator()
|
||||||
|
|
||||||
|
def _validate_options(self):
|
||||||
|
"""No options needed for this module"""
|
||||||
|
return True
|
||||||
|
|
||||||
def _run_emulator(self):
|
def _run_emulator(self):
|
||||||
"""execute e-uae"""
|
"""execute e-uae"""
|
||||||
utils.run_command(['e-uae', '-f', os.path.join(self.dir, '.uaerc')])
|
utils.run_command(['e-uae', '-f', os.path.join(self.dir, '.uaerc')])
|
||||||
Reference in New Issue
Block a user