The new version seems to work fine for single layer games (i.e. Dynasty Warriors 4), and for dual layer games that fit on a single layer disc (i.e. Tenchu Return From Darkness) it turns it into an image for a single layer disc, like you said it would. I haven't tried a disc with the #@LayerBreakFile yet, I think I will see if they have DVD-RW DL at Office-Max first to test (dont wan't waste a DL dvd if it's not gonna work).
So if there is a game over the size of a dvd5 that doesn't have that line then the space will just be padded in layer 0 to fill up the dvd? Is it at the beginning or end of the layer?
Also, for future versions, I think it should follow this (just my opionion):
Have the following options (or something similar):
-h : Disaplays help text.
-pad : Pads the image to fill entire disc.
-OEIBuf [n] : Will leave a gap of [n] Mega Bytes near the outside edge of the disc when padding a image. This option can be used to avoid writing to areas of imperfections sometimes found near the outside of cheaper discs.
-order [Filename] : Same as now
-ordercreate [Filename] : Same as now
-SL : Will create a single layer image for a dual-layer game if the game can fit on a single layer disc.
General program flow (doesn't cover everything at all, not even close):
-If -ordercreate flag is used, create layout file (and end program, if thats what it does now).
-Check the size of the game
-If it can't fit on a single layer disc:
---If the -SL flag was used:
-----Report error to user that the game cannot fit on a single-layer disc. (End program maybe?)
---If (gameSize + OEIBuf > dualLayerSize)
-----Report error to user that the image cannot fit on a dual-layer disc.
-----If (OEIBuf > 0)
-------Tell user to try lowering OEIBuf.
---If -order flag was used:
-----If valid layout w/ both layers:
-------Call BuildDualLayerImage function thingy
. End program.
-------Report error to user that layout is invalid or doesn't match game. End program.
---Build image without using layout, using padding if -pad is used. End program.
---If the -order flag was used
-----If the layout file is valid
-------If there are two layers
---------If -SL flag is not used
-----------Go to path A.
-----------If -opt1 and -opt2 flags are re-implemeted, they work here.
---------If -SL flag is used
-----------Give error about single layer game not using -SL
-------Give error etc.
---If (gameSize + OEIBuf > singleLayerSize)
-----Tell user to try lowering OEIBuf so it can fit on a single disc and end program.
---Create single layer image using whatever from earlier (padding, buffer, layout, etc.)
Its jsut my opinion (which is correct, btw
). Follow whatever parts of it you feel like.
If you would like any help coding or for anything else, just let me know.