Chankast Wrapper 2.0 (Daemon Edition)

Usage:
======

Take the wrapper and the manifest file and drop them in your chankast folder.  
Keep both versions of the chankast exe in the same folder, they co-exist just fine.  Do NOT rename the chankast exes!
Double click on the wrapper to set your settings and you are done!  

Setting Up an Image:
==========================
As you know, chankast cannot support real dc discs but instead relies on mounting ripped images virtually on your harddrive.  
The chankast website explains how to do this.  This special version of the wrapper takes advantage of the command line options 
of daemon tools.  To use it you must allow chankast full control of virtual device zero. (Daemon's term, not mine... 
left-click on your daemon icon to see which drive is "device 0") Now in the settings menu, press the button that reads 
"Keycode for Virtual Drive Daemon uses" and when prompted press the key of the drive device 
zero simulates (like "E" for example).  The rest of the options are self explanitory.  

Command Line Usage:
==========================

chankast-launch.exe d:\path\to\your\iso\isoname.extension -command line options

options:

-cpu ###  		set cpu speed to number you specify (100% is used if the option is left out)
-highpriority		enable high priority
-zwrite			enable zwrite
-zwritealpha		enable zwrite alpha test
-capcomhack		enable capcomhack
-oldgfx			use old graphics method (new is used if this option is left blank)
-ntsc			use ntsc mode (vga is used if this option is left blank)
-showfps		show fps
-nodaemon		doesn't mount the image using daemon 





In this version the iso path is CRUCIAL so it must be valid.  


What if I'm using Real Cds?:
=================================
First off, you should know by now that original dreamcast discs don't work, but backups do.  With that out of the way.....

Simply press the key for the real cdrom drive you wish to use when configuring in the settings.  Now when you launch use the
-nodaemon option.  Poof it works like magic.  Be sure to put the cd in BEFORE you launch chankast and give it time to spin 
up.


Special Note About Autolaunch:
=================================
When you put in a cd in windows, the stupid autolaunch tries to load the cd for you.  This will interfere with the wrapper.
You need to turn autolaunch off for the drive you wish to use, even if it is virtual.  For information on how to do so use
this link:

http://www.annoyances.org/exec/show/article03-018


Special Note About Daemon Tools:
==================================
I have nothing to do with how daemon tools reacts to the options you send to it.  So if you send an invalid or corrupted
iso to the wrapper and daemon gives an error you'll know it's on your end, not mine.  Take special note about the device zero
instructions above.  If you don't have at least on virtual device made in daemon (device 0 is the first) then it will error.


Notes:
======

The "virtual cd" method and the "real cd" method can be mixed and matched together if you have a mixed collection.

"Fullscreen" is faked by setting the window position and removing the borders via api calls.  You'll notice a small gap
at the bottom of the screen.  This is due to api limits which keep me from making the window bigger than the screensize.
As I move the window up 20 pixels to hide the menu bar, there will always be a 20 pixel gap at the bottom of the screen.  
Imho this is preferable than the distracting grey menu bar.  It looks best if the taskbar is set to auto-hide.

No, I can't hide chankast while the game is loading.  I have to use simulated keypresses, and thus I must be able to
see the window.  

No you can't exit with your gamepad.  Because chankast uses exclusive direct input to poll it's inputs, the emulator would
slow to a crawl if I tried to poll the joystick.  Sorry.  :-(  However, joytokey might do a decent job as it uses other 
methods.



High Priority doesn't really work with the wrapper, but I put it in for completness.  Use at your own risk.  


Tempcast.cfg is a "blank" chankast.cfg I use to clear all the saved settings.  If chankast were to be updated 
(and I don't update the wrapper) you may need to make your own tempkast.cfg by deleting the chankast.cfg, launching chankast
and then exit and rename. 




  