1
0
mirror of https://github.com/gryf/fs-uae-wrapper.git synced 2025-12-22 05:48:07 +01:00

Bumped version, readme update

This commit is contained in:
2017-01-02 15:46:07 +01:00
parent ee65e7ed7f
commit 48bb1b1e1f
2 changed files with 86 additions and 22 deletions

View File

@@ -5,6 +5,9 @@ FS-UAE Wrapper
.. image:: https://travis-ci.org/gryf/fs-uae-wrapper.svg?branch=master .. image:: https://travis-ci.org/gryf/fs-uae-wrapper.svg?branch=master
:target: https://travis-ci.org/gryf/fs-uae-wrapper :target: https://travis-ci.org/gryf/fs-uae-wrapper
.. image:: https://img.shields.io/pypi/v/fs-uae-wrapper.svg
:target: https://pypi.python.org/pypi/fs-uae-wrapper
This little utility is a wrapper on great FS-UAE_ emulator, to perform some This little utility is a wrapper on great FS-UAE_ emulator, to perform some
actions, like uncompressing archived files (CD ROMs images, filesystems), actions, like uncompressing archived files (CD ROMs images, filesystems),
launch the emulator and archive emulator save state. launch the emulator and archive emulator save state.
@@ -25,11 +28,25 @@ Requirements
- Python (2 or 3) - Python (2 or 3)
- `fs-uae`_ (obviously :) - `fs-uae`_ (obviously :)
Also, there should be archivers programs available for compress/decompress
archives. Fs-uae-wrapper supports several types of archives:
Also, there should be at one of the (de)compression utility, for example: - `7z`_
- `lha`_
- `lzx`_ - decompress only
- `rar`_ - if only ``unrar`` is available, than only decompression is supported
- `tar`_, also compressed with:
- `7z`_ archiver - bzip2
- `unrar`_ - gzip
- xz
- `zip`_
There are several archive types which are supported, ranging from tar
(compressed with gzip, bzip2 and xz), 7z, rar, zip. lha and lzx. All of those
formats should have corresponding decompressors available in the system,
otherwise archive extraction will fail.
Installation Installation
============ ============
@@ -38,7 +55,7 @@ Just perform (preferably in ``virtualenv``) a command:
.. code:: shell-session .. code:: shell-session
$ pip install fs-uae-wrapper (not there yet) $ pip install fs-uae-wrapper
Usage Usage
===== =====
@@ -84,8 +101,11 @@ executable as-is.
Modules Modules
======= =======
For now, only ``plain`` and ``cd32`` modules exists, although there are planned Currently, three wrapper modules are available:
couple more.
- plain
- cd32
- archive
plain plain
----- -----
@@ -109,8 +129,8 @@ Options used:
* ``wrapper_gui_msg`` (optional) if set to "1", will display a graphical * ``wrapper_gui_msg`` (optional) if set to "1", will display a graphical
message during extracting files message during extracting files
There is one assumption regarding archives file. Let's see some sample config Let's see some sample config for a game, which is saved as
for a game, which is saved as ``ChaosEngine.fs-uae``: ``ChaosEngine.fs-uae``:
.. code:: ini .. code:: ini
:number-lines: :number-lines:
@@ -130,17 +150,6 @@ for a game, which is saved as ``ChaosEngine.fs-uae``:
joystick_port_1_mode = cd32 gamepad joystick_port_1_mode = cd32 gamepad
platform = cd32 platform = cd32
Assumption is that archive containing files for the game (here: *Chaos
Engine*) should not be in subdirectory. In other words, all essential files
(like ``*.cue``, ``*.iso`` and ``*.wav`` files) should be located directly in
the archive, otherwise it might be impossible to create right configuration and
debugging such setup might be annoying.
There are several archive types which are supported, ranging from tar
(compressed with gzip, bzip2 and xz), 7z, rar, zip. lha and lzx. All of those
formats should have corresponding decompressors available in the system,
otherwise extracting will fail.
Next, the invocation of the wrapper would be as follows: Next, the invocation of the wrapper would be as follows:
.. code:: shell-session .. code:: shell-session
@@ -165,6 +174,57 @@ Next, after ``fs-uae`` quit, there will:
``ChaosEngine_save.7z``. ``ChaosEngine_save.7z``.
- Wipe out temporary directory - Wipe out temporary directory
archive
-------
Options used:
* ``wrapper`` (required) with ``cd32`` as an value
* ``wrapper_archive`` (required) path to the archive with assets (usually means
whole system directories, floppies or hd images)
* ``wrapper_gui_msg`` (optional) if set to "1", will display a graphical
message during extracting files
* ``wrapper_persist_data`` (optional) if set to "1", will compress (possibly
changed) data, replacing original archive
Example configuration:
.. code:: ini
:number-lines:
[config]
wrapper = archive
wrapper_archive = Workbench_3.1.tar.bz2
wrapper_gui_msg = 1
wrapper_persist_data = 1
...
And execution is as usual:
.. code:: shell-session
$ fs-uae-wrapper Workbench.fs-uae
This module will do several steps (similar as with ``cd32`` wrapper):
- create temporary directory
- extract provided in configuration archive
- extract save state (if exists)
- copy configuration under name ``Config.fs-uae``
- run the fs-uae emulator
- create archive with save state (if save state directory place is *not* a
global one)
- optionally create new archive under the same name as the original one and
replace it with original one.
This module is quite useful in two use cases. First is a usual work with
Workbench, where there is a need to keep changes of filesystem. Second is the
opposite - if there is a need to test some software, but not necessary keep it
in a Workbench, than it will act as a temporary copy of the system, so that
next time fs-uae will be run, there will be no files of tested software
cluttering around.
License License
======= =======
@@ -172,5 +232,9 @@ This work is licensed on 3-clause BSD license. See LICENSE file for details.
.. _fs-uae: https://fs-uae.net/ .. _fs-uae: https://fs-uae.net/
.. _relative configuration file: https://fs-uae.net/configuration-files .. _relative configuration file: https://fs-uae.net/configuration-files
.. _unrar: http://www.rarlab.com/rar_add.htm .. _rar: http://www.rarlab.com/rar_add.htm
.. _7z: http://p7zip.sourceforge.net/ .. _7z: http://p7zip.sourceforge.net/
.. _lha: http://lha.sourceforge.jp
.. _lzx: http://aminet.net/package/misc/unix/unlzx.c.readme
.. _tar: https://www.gnu.org/software/tar/
.. _zip: http://www.info-zip.org

View File

@@ -5,9 +5,9 @@ Setup for the fs-uae-wrapper
from distutils.core import setup from distutils.core import setup
setup(name='fs-uae wrapper', setup(name='fs-uae-wrapper',
packages=['fs_uae_wrapper'], packages=['fs_uae_wrapper'],
version='0.1', version='0.3',
description='Automate archives and state for fs-uae', description='Automate archives and state for fs-uae',
author='Roman Dobosz', author='Roman Dobosz',
author_email='gryf73@gmail.com', author_email='gryf73@gmail.com',