Thread: UAEquit
View Single Post
Old 14 November 2015, 16:18   #1
rbm
Registered User
 
Join Date: Jul 2013
Location: CAT
Posts: 46
UAEquit

Because there is no UAEquit CLI program that works when any 68060 or PPC expansions is selected.

The attached that uses "uae.resource" works.

Usage:

"UAEquit" .......................... Shutdown
"UAEquit RESET" ................. Reset
"UAEquit HARDRESET" .......... Hard reset


The simple source code:

#include <stdio.h>
#include <stdlib.h>
#include "uae_pragmas.h"
#define VERSION_STRING "\0$VER: UAEquit v1.0"
UBYTE *version_string = VERSION_STRING;
int main (int argc, char *argv[]){
if (!InitUAEResource()) printf ("UAE not found\n");
else {
if(!(strcmp(argv[1],"RESET"))) Reset();
if(!(strcmp(argv[1],"HARDRESET"))) HardReset();
if(!(argv[1])) ExitEmu();
printf ("Invalid Parameter\n");
}
}
Attached Files
File Type: lha UAEquit.lha (2.7 KB, 49 views)
rbm is offline  
AdSense AdSense  
 
Page generated in 0.06130 seconds with 10 queries