Changed Program Class, now supports the new command line class.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@308
This commit is contained in:
parent
061aaeaa6c
commit
3df0c719f2
1 changed files with 10 additions and 12 deletions
|
@ -18,32 +18,30 @@
|
|||
|
||||
#ifndef __PROGRAM_H
|
||||
#define __PROGRAM_H
|
||||
#include <dosbox.h>
|
||||
#include <dos_inc.h>
|
||||
#include "dosbox.h"
|
||||
#include "dos_inc.h"
|
||||
#include "setup.h"
|
||||
|
||||
|
||||
char * MSG_Get(char * msg);
|
||||
class Program;
|
||||
|
||||
struct PROGRAM_Info {
|
||||
Bit16u psp_seg;
|
||||
sPSP psp_copy;
|
||||
char full_name[32]; //Enough space for programs only on the z:\ drive
|
||||
char * cmd_line;
|
||||
};
|
||||
|
||||
typedef void (PROGRAMS_Main)(PROGRAM_Info * info);
|
||||
typedef void (PROGRAMS_Main)(Program * * make);
|
||||
void PROGRAMS_MakeFile(char * name,PROGRAMS_Main * main);
|
||||
|
||||
class Program {
|
||||
public:
|
||||
Program(PROGRAM_Info * program_info);
|
||||
Program();
|
||||
virtual ~Program(){}
|
||||
std::string temp_line;
|
||||
CommandLine * cmd;
|
||||
DOS_PSP * psp;
|
||||
virtual void Run(void)=0;
|
||||
char * GetEnvStr(char * env_entry);
|
||||
char * GetEnvNum(Bit32u num);
|
||||
Bit32u GetEnvCount(void);
|
||||
bool SetEnv(char * env_entry,char * new_string);
|
||||
void WriteOut(char * format,...); /* Write to standard output */
|
||||
PROGRAM_Info * prog_info;
|
||||
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue