dosbox breaks with MIPSpro, works with gcc
#2
RE: dosbox breaks with MIPSpro, works with gcc
I've been digging a bit more into this, I'm putting "printf's" into places to see what's going on, and here is what I seem to think is going on.

It seems there is logic that checks if there are any strings/characters after the mount command, if not - just print what's currently mounted, otherwise do other stuff.  It seems no matter what I type after issuing the "mount" command, dosbox never see's any string of characters after the mount command.

for example here some code I've been focusing on - src/dos/dos_programs.cpp:

Code:
void Run(void) {
DOS_Drive * newdrive;char drive;
std::string label;
std::string umount;
std::string newz;

//Hack To allow long commandlines
ChangeToLongCmd();
/* Parse the command line */
/* if the command line is empty show current mounts */
if (!cmd->GetCount()) {
printf("above ListMounts\n"); /* I added this to debug the program - THIS ALWAYS PRINTS no matter what I type after mount!! */
ListMounts();
return;
}


so no matter what I type in dosbox, be it
Code:
mount D "/CDROM"
or
Code:
mount FU
 (note this should trigger a showusage() function)
I've been trying to figure out how to troubleshoot/debug 

Code:
cmd->GetCount()

and

Code:
 cmd->FindString()

that are also in the dos_programs.cpp file but I'm having a hard time, if anyone has any ideas let me know!
gijoe77
Tezro

Trade Count: (1)
Posts: 644
Threads: 34
Joined: Jun 2018
Find Reply
03-15-2019, 02:10 AM


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)