add GetArchName

This commit is contained in:
Glenn Maynard
2006-02-13 23:14:11 +00:00
parent 5f72bea070
commit d081b1c204
5 changed files with 11 additions and 0 deletions
+5
View File
@@ -6,6 +6,11 @@ class ArchHooks
public:
virtual ~ArchHooks() { }
/*
* Return the general name of the architecture, eg. "Windows", "OSX", "Unix".
*/
virtual RString GetArchName() { return "generic"; }
/* This is called as soon as the loading window is shown, and we can
* safely log. */
virtual void DumpDebugInfo() { }
@@ -6,6 +6,7 @@ class ArchHooks_Unix: public ArchHooks
{
public:
ArchHooks_Unix();
RString GetArchName() { return "Unix"; }
void DumpDebugInfo();
void SetTime( tm newtime );
@@ -9,6 +9,7 @@ class ArchHooks_Win32: public ArchHooks
public:
ArchHooks_Win32();
~ArchHooks_Win32();
RString GetArchName() { return "Windows"; }
void DumpDebugInfo();
void RestartProgram();
bool CheckForMultipleInstances();
@@ -9,10 +9,13 @@ class ArchHooks_Xbox: public ArchHooks
public:
ArchHooks_Xbox();
~ArchHooks_Xbox();
RString GetArchName() { return "Xbox"; }
//void MountInitialFilesystems( const RString &sDirOfExecutable );
};
// XXX: This stuff doesn't belong here. Hide it in ArchHooks.
// Read a 64 bit MSR register
inline void READMSRREG( UINT32 reg, LARGE_INTEGER *val )
{
@@ -9,6 +9,7 @@ class ArchHooks_darwin : public ArchHooks
public:
ArchHooks_darwin();
~ArchHooks_darwin();
RString GetArchName() { return "OSX"; }
void DumpDebugInfo();
RString GetPreferredLanguage();
void EnterTimeCriticalSection();