# cpct_winape

This script lets the user execute winape from command line and automatically run a file from a DSK at will.

#### Usage

cpct_winape [options] [DSKFile]

#### Description

This script automatically launches WinAPE either directly or using wine, depending on the system where it is executed (OSX and Linux will use wine, Windows/Cygwin will execute directly). The script also lets the user give a DSK file as parameter to be automatically loaded into WinAPE’s FD1. The main file from the DSK will be automatically runned (with a RUN command) and the corresponding NoICE symbols file for debugging will automatically be loaded. NoICE symbols are grabbed either from the same folder where DSK lies, or from obj/ subfolder, if they exist.

If WinAPE is not installed on the system or not propperly configured to be used with this script, the script prompts the user and helps to configure and/or to install WinAPE. Users can either give the script the path of their own WinAPE installations or ask the script to automatically download and install it inside CPCtelera’s tool folder. For this last operation, wget and unzip commands are required (they should be installed in the system).

#### Command line options

-a | --any-dsk | Lauches WinAPE and loads first DSK file to match *.dsk
-n | --no-execute | Lauches WinAPE but does not automatically RUN any DSK program.
-s | --symbols <symbols_file> | Loads a symbols file for debugging (NoICE format .noi).
-d | --disable-symbols-autoload | Prevents this script from trying to autoload a symbols file for debugging, when no symbols file is provided
-h | --help | Shows help information on the terminal.

This script lets the user execute winape from command line and automatically run a file from a DSK at will.
Close