You can set the linker entry point to be whatever you want AFAIK. I'm not sure what you want to change in the CE kernel, you would need to locate and modify the loader to inject your console commands before the target binary is executed if I understand what you are trying to do.
As far as I can tell his patch just inserted a nop in place of the conditional JZ/JNZ whatever check.
Though I cannot understate that before multiplayer gets looked into, we must figure out how to load mods on the Dreamcast
Multiplayer would be somewhat pointless without mods and mods would be somewhat pointless without multiplayer. If we did actually pull this off and get it working, it would be the best thing on the Dreamcast with a potential massive amount of new great games both online and offline
Hey wait, I just thought of this, since we know the 1st_read.bin/0winceos.bin for a WinCE game is where the kernel loads, I can try using a 1st_read.bin from starlancer/max pool/4x4 evo. All of which are WinCE, and have multiplayer. I'd just have to rename the binary to the name of the game's binary (starlancer.exe etc)
This probably will not do anything for half-life directly, but it may allow the WinCE loader program to boot with a kernel that half-life will boot with
Meaning using any of the WinCE kernels I made using the Image Configuration tool, halflife_dc.exe would not boot. But if we're using the kernel from starlancer/maximum pool/4x4 evo, half-life may load
And if it does not, we can use the WinCE viewer to see the registry entries for a multiplayer WinCE game. Then either use the kernel for said game or use it as a template for the kernel to be used when someone with the skill actually attempts to get this working
I would need to look at the WinCE kernel structure to be sure about the details, but in general code injection on an embedded system of this nature is not hard to do. Whether it is from a sideloaded DLL or directly into the kernel itself really isn't important. Judging from the looks of it, it appears that 0winceos.bin is the actual kernel, and that in turn loads in the core CE DLL's at startup, finds the target exe, loads that and any additional required DLLs, and then executes. Again this is just from a quick look, I didn't load the kernel up in IDA to check.
Something to keep in mind is that if you are debugging with a BBA, getting multiplayer to work is a non-starter. You could try with a coder's cable over serial I suppose, but I don't know how prohibitive the transfer rate will be.
Also, if all you are trying to do is test command line parameters at startup, you can put a breakpoint on WinMain() and just set the parameters at that time instead of trying to hijack the load process. WinMain() should always load to a fixed location, though it will depend on how the MMU is initialized. This was written way before ASLR was really an issue so I don't see it being a problem. Alternatively you can just find the switch table where the arguments are parsed and invert the conditional on the ones you want to check. This will only work for binary options though, not ones that take a parameter (resolution=xxx or whatever).
Half-Life's kernel/registry cannot be viewed in CE loader because it does not use the GDI graphics driver that CE loader uses to display everything
There's probably a way to do this using the dev software and coders cable by loading a debugger program with WinDBG (i think CEMON.EXE or something), then exploring the registry. I'm also pretty sure there's an included registry editor that functions similar to WinDBG
I will test Starlacer next. Maybe later today or tomorrow
Edit: To clarify, you must rename halflife_dc.exe to hldc.exe, rename ce_debug_program_here.exe to halflife_dc.exe. This way 1st_read.bin (where the CE kernel information loads into ROM) opens said debug program using the Half-Life CE kernel and registry
WOW! Only $20! You lucky bastard! Keep us all updated! Congrats man!
If somebody with the know-how wants to hexedit DC-TOOL so it automatically uses COM1 instead of SCSI for a Katana box, here is the binary
It may not be possible, but it'd save me a lot of time
It seems my issue with DC-Tool not working is not having the correct version of WNASPI32.DLL. I've tested many different versions, and one somewhat works, but crashes the rest of the progs. This leads me to believe I should be using Windows 98 instead of Windows XP because I was reading that WNASPI32.DLL came standard with a new install of Win95/98
The WinDBG says the kernel I'm using is from September 21 1999, I'm not sure if XP was even out then
I hope I do not need to reinstall everything, that took many hours the other day because I messed up my Windows 7 boot manager and had to repair it twice
Remember all the stuff about the second disc having Team Fortress Classic and Counter-Strike? Maybe the second disc had Half-Life Multiplayer on it, instead of being on the main disc, considering if multiplayer was present on the main disc, it could have been on the second disc instead of on the main disc, it'd make sense to move it a multiplayer game to the second disc where all the multiplayer games are.
Well, considering the fact they were not really that close to releasing that disc I doubt it ever existed other than the code we have now with the leaked build. They had plans for it but that was gonna happen much later after the singleplayer disc was released. Oh what could have been...