diff --git a/include/dosbox.h b/include/dosbox.h index b4b109ed..6f381dec 100644 --- a/include/dosbox.h +++ b/include/dosbox.h @@ -24,6 +24,9 @@ void E_Exit(char * message,...); void S_Warn(char * message,...); +void AddMessage(const char*,const char*); //add messages to the internal langaugefile +const char* MSG_Get(char const *); //get messages from the internal langaugafile + /* The internal types */ typedef unsigned char Bit8u; typedef signed char Bit8s; @@ -64,7 +67,6 @@ extern Bitu errorlevel; inline void LOG_MSG(char* message) { - if(errorlevel>=0) S_Warn(message); } diff --git a/include/programs.h b/include/programs.h index 80addf11..34875b2c 100644 --- a/include/programs.h +++ b/include/programs.h @@ -23,7 +23,6 @@ #include "setup.h" -char * MSG_Get(char * msg); class Program; typedef void (PROGRAMS_Main)(Program * * make); @@ -41,7 +40,7 @@ public: char * GetEnvNum(Bit32u num); Bit32u GetEnvCount(void); bool SetEnv(char * env_entry,char * new_string); - void WriteOut(char * format,...); /* Write to standard output */ + void WriteOut(const char * format,...); /* Write to standard output */ };