★ TouchArcade needs your help. Click here to support us on Patreon.

iPhone: Aemula Oldies S

12-22-2011, 06:37 PM
#1
Senior Member [Original Poster]
Joined: Apr 2010
Posts: 762
Aemula Oldies S

I was just fooling around and typed in iDOS on Appstore and guess what I found? Aemula Oldies S.

http://itunes.apple.com/au/app/aemula-oldies-s/id490466764?mt=8

Not sure how it is compared to the first version of iDOS though.
12-22-2011, 06:44 PM
#2
Can I play Warcraft 2 on this?

12-22-2011, 06:56 PM
#3
Joined: Aug 2009
Location: Brisbane, Australia
Posts: 59
Currently trying to add new games by modifying the playlist code. I can get a game to show up in the list but it won't load yet.
12-22-2011, 06:56 PM
#4
Joined: Aug 2009
Posts: 88
Quote:
Originally Posted by dnk View Post
I was just fooling around and typed in iDOS on Appstore and guess what I found? Aemula Oldies S.

http://itunes.apple.com/au/app/aemula-oldies-s/id490466764?mt=8

Not sure how it is compared to the first version of iDOS though.
Thread on it started here.... surprised it hasn't gotten any attention, really.
http://forums.toucharcade.com/showthread.php?t=117817

Quote:
Originally Posted by ilStugots View Post
Can I play Warcraft 2 on this?
No. You can't add any games to it. You could dump your own games exe's into iDOS, but that's at least one of the reasons it isn't on the App Store any longer.
12-22-2011, 07:21 PM
#5
Ah well. If we're lucky they'll release some decent content packs for it or something. Still too bad there's no better alternative. At least I can play Monster Bash again.
12-23-2011, 06:42 AM
#6
Joined: Dec 2008
Posts: 1,594
Hacking

What I've found so far:

- games are stored under the Packages directory, in the Aemula Oldies.app file

- they're listed in the Packages.plist file. I assume you can add any number of games to this file to avoid having to go to the DOS prompt to load your own ones from the command line. (The latter is certainly possible; see Valentino Haloska's post above. BTW – do you know who's called “Haloska” (in a not very friendly way) in Finland? )

Now, the games themselves are stored in .pkg files. They're simple ZIP files – just rename them to .zip before opening. They contain a key mapping file (great for mapping buttons to the on-screen joystick) and an .im1 file.

The latter has the size of the of a standard 1.44 Mbyte MS-DOS disk and contains all games (one by one). (Strangely, the end of the disk seems to be the same for all the games I've investigated – a leftover from an adventure game.)

I've tried reading the disk image with two image handlers so far (http://www.altap.cz/salam_en/features/unfat.html and http://www.winimage.com/download.htm ). Neither were able to do this; that is, the IM1 files are encrypted in some ways. It's not WinImage's password facility, which simply encrypts the compressed file but can't do the same to the uncompressed one.

I've compared the header of a standard (empty) 1.44 Mbyte virtual disk file produced by WinImage. The headers are vastly different. I'll try to just copy the first some/several hundred bytes from WinImage's version to that of Aemula and vice versa to find out whether it's encrypted header that makes WinImage unable to read the image and, then, to alter and save it. After all, the latter is our goal to add new games as the emulator doesn't seem to have any way of accepting non-diskimage based files, unlike iDOS. At least I haven't found anything related to adding plain .EXE/.COM files, let alone data files and/or complete dictionaries.

If it remains impossible to make images recognized I will (you can) also try injecting files directly in the file image by not using standard disk image editors at all but updating the FAT12 table yourself and injecting the binary file in the image. It isn't very hard – I've done this a lot back in Miha Peternel's C64 emulator times when (in September 1993) there were still no .d64 disk editors and, therefore, I had to write mine. I seriously doubt direct injection is needed as it must be a comparatively easily changeable part of the IM1 files that has consistently been made incompatible with current, standard disk image editors – the rest of the file seems to be a completely good FAT12 virtual file disk.

Unfortunately, the unpacked pkg files under /Library/Private Documents/<some UUID given in the plist> have encrypted IM files too; that is, we can't “attack” from there.

In the meantime: make sure you make ALL your friends etc. download this emulator. As soon as I (we) find a way of hacking it, Apple may remove it from the AppStore (again). Download it NOW!

EDIT: we've continued discussing the hack at http://forums.toucharcade.com/showth...=81418&page=47 (page 47). Please come there for further discussion!

EDIT 2 (15:36): Full hacking tutorial posted to http://forums.toucharcade.com/showpo...&postcount=468

Last edited by Menneisyys; 12-23-2011 at 09:37 AM.
12-23-2011, 09:36 AM
#7
Joined: Dec 2008
Posts: 1,594