summaryrefslogtreecommitdiff
path: root/com32/chain/options.c
Commit message (Collapse)AuthorAgeFilesLines
* com32/chain: once more rename option: stop -> breakMichal Soltys2011-05-101-9/+9
| | | | | | Seems to be most appropriate... Signed-off-by: Michal Soltys <soltys@ziu.info>
* com32/chain: add support for ReactOS's freeldr.sysMichal Soltys2011-05-101-0/+15
| | | | | | | | Based on commit: ad4cf1470977f648ee1dd45e97939589ccb0393c (might need address adjustments) Signed-off-by: Michal Soltys <soltys@ziu.info>
* com32/chain: change 'nochain' -> 'stop', update docsMichal Soltys2011-03-181-6/+6
| | | | Signed-off-by: Michal Soltys <soltys@ziu.info>
* com32/chain: option rename: mbrchs -> fixchsMichal Soltys2011-03-081-5/+5
| | | | Signed-off-by: Michal Soltys <soltys@ziu.info>
* com32/chain: minor help fixMichal Soltys2011-03-071-2/+2
| | | | Signed-off-by: Michal Soltys <soltys@ziu.info>
* com32/chain: minor fixes and cleanupsMichal Soltys2010-10-251-4/+26
| | | | | | | | | | | | | | | | | | | | - make sure opt.maps implies opt.sect, and simplify conditions throughout the files - move structure opt -> options.c - adjust #includes - omitted values in seg= and sect= are assumed 0 in all cases now - mangler_handover(): eax for gpt handover set only for iterated disks - rename parse_args() -> opt_parse_args() - rename mangler_common() -> mangler_init() - add opt_set_defs() - if mmapped sector would conflict with the file, turn off mmapping instead of bailing out - update temporary chain.txt to reflect changes + other fixups Signed-off-by: Michal Soltys <soltys@ziu.info>
* com32/chain: remove remains of SECTORMichal Soltys2010-10-141-4/+0
| | | | | | | All chain related code no longer depends on hardcoded sector size. Signed-off-by: Michal Soltys <soltys@ziu.info>
* com32/chain: allow service-only runsMichal Soltys2010-10-081-8/+21
| | | | | | | | | | | | | | This patch introduces small feature, allowing so called "service-only" runs - where the chain modules does everything as instructed, but otherwise doesn't perform actual chainloading. This is useful for 'mbrchs', '[un]hide[all]' and 'setbpb'+'save' options, making possible adjustments to partition/boot sector values on any disk/partition. See 'chain' option in doc/chain.txt for more details. Signed-off-by: Michal Soltys <soltys@ziu.info>
* com32/chain: Add unhide and unhideall optionsMichal Soltys2010-10-081-4/+7
| | | | | | | It could be useful to be able to simply unhide partitions. This short patch adds such functionality. Signed-off-by: Michal Soltys <soltys@ziu.info>
* chain/options.c: cosmeticsMichal Soltys2010-09-281-4/+4
| | | | Signed-off-by: Michal Soltys <soltys@ziu.info>
* chain module: bugfixing and cosmeticsMichal Soltys2010-09-281-8/+9
| | | | | | | | | | | | | Bugs: - one introduced ages ago - find_by_* functions should be tested vs. <0 for failure - one introduced by 579f15c7c456c - it accidentally blocked too much when testing for ',' in drive/partition option parsing - one introduced by d4d713c9ccfe0 - sone machines / VMs seem to set @40:75 just 1, regardless of amount of fixed disks available Signed-off-by: Michal Soltys <soltys@ziu.info>
* chain module: setbpb changes, bss & bs options, bugfixesMichal Soltys2010-09-281-76/+32
| | | | | | | | | | | | | | | Generic function detecting BPB type (7 versions) have been added. set{hid,geo,drv} have been replaced by single setbpb option, using mentioned function to make more precise decisions what to update where. Full BSS and BS emulation has been added, also employing BPB detection. Some logic/flow changes in chain's main(). There was also a bug, in which backup sector was populated with wrong data. Appropriate documentation updates. Signed-off-by: Michal Soltys <soltys@ziu.info>
* chain, options: bugfixes, adjustments; big doc updateMichal Soltys2010-09-281-27/+34
| | | | | | | | | | | - seg='s offset values default to 0 if ommited - sect='s offset values default to 0x7c00 if ommited - FDOS's bootsector loaded at 0x1fe0 - drive / partition parsing: bugfix, so lables with ',' are recognized properly - big documentation update Signed-off-by: Michal Soltys <soltys@ziu.info>
* chain, partiter, options: bugfix, new optionsMichal Soltys2010-09-281-3/+12
| | | | | | | | | | | | | | | | - small bugfix in partiter.c - new options: hideall, mbrchs - new partiter feature - rawindex - counts all (inc. empty) partitions in all cases hideall is expansion of hide, that hides all partitions in a chain, not only primary ones mbrchs walks over all partitions and fixes chs values in mbr entries rawindex keeps count of all partitions, including holes in EBRs Signed-off-by: Michal Soltys <soltys@ziu.info>
* chain, options: fixes, additionsMichal Soltys2010-09-281-11/+29
| | | | | | | | | - add 'bss=' option - update usage() - ommited offsets in 'file=' and 'sect=' default to 0x7c00 now - cosmetics Signed-off-by: Michal Soltys <soltys@ziu.info>
* chain.c: Split chain into smaller filesMichal Soltys2010-09-281-0/+336
new file: chain.h new file: common.h new file: mangle.c new file: mangle.h new file: options.c new file: options.h new file: utility.c new file: utility.h Signed-off-by: Michal Soltys <soltys@ziu.info>