diff options
Diffstat (limited to 'hgewin')
-rwxr-xr-x | hgewin/hge_impl.h | 3 | ||||
-rwxr-xr-x | hgewin/input.cpp | 2 | ||||
-rwxr-xr-x | hgewin/resource.cpp | 2 | ||||
-rwxr-xr-x | hgewin/system.cpp | 4 |
4 files changed, 6 insertions, 5 deletions
diff --git a/hgewin/hge_impl.h b/hgewin/hge_impl.h index b3f0fe5..5acdcd4 100755 --- a/hgewin/hge_impl.h +++ b/hgewin/hge_impl.h @@ -1,3 +1,4 @@ +// -*- C++ -*- /* ** Haaf's Game Engine 1.8 ** Copyright (C) 2003-2007, Relish Games @@ -199,7 +200,7 @@ public: static HGE_Impl* _Interface_Get(); void _FocusChange(bool bAct); - void _PostError(char *error); + void _PostError(const char *error); HINSTANCE hInstance; diff --git a/hgewin/input.cpp b/hgewin/input.cpp index 080f335..0610376 100755 --- a/hgewin/input.cpp +++ b/hgewin/input.cpp @@ -10,7 +10,7 @@ #include "hge_impl.h" -char *KeyNames[] = +const char *KeyNames[] = { "?", "Left Mouse Button", "Right Mouse Button", "?", "Middle Mouse Button", diff --git a/hgewin/resource.cpp b/hgewin/resource.cpp index fa1ddf9..6921dc6 100755 --- a/hgewin/resource.cpp +++ b/hgewin/resource.cpp @@ -82,7 +82,7 @@ void CALL HGE_Impl::Resource_RemoveAllPacks() #undef DWORD void* CALL HGE_Impl::Resource_Load(const char *filename, DWORD *size) { - static char *res_err="Can't load resource: %s"; + static const char *res_err="Can't load resource: %s"; CResourceList *resItem=res; char szName[_MAX_PATH]; diff --git a/hgewin/system.cpp b/hgewin/system.cpp index 9dfda86..2cbd741 100755 --- a/hgewin/system.cpp +++ b/hgewin/system.cpp @@ -77,7 +77,7 @@ bool CALL HGE_Impl::System_Initiate() System_Log("%s: HGE Started...",SYSTEM_SRC_FN); - System_Log("%s: hge-unix version: %X.%X", SYSTEM_SRC_FN, HGE_VERSION>>8, HGE_VERSION & 0xFF); + System_Log("%s: hge version: %X.%X", SYSTEM_SRC_FN, HGE_VERSION>>8, HGE_VERSION & 0xFF); GetLocalTime(&tm); System_Log("%s: Date: %02d.%02d.%d, %02d:%02d:%02d\n", SYSTEM_SRC_FN, tm.wDay, tm.wMonth, tm.wYear, tm.wHour, tm.wMinute, tm.wSecond); @@ -741,7 +741,7 @@ HGE_Impl::HGE_Impl() szAppPath[i+1]=0; } -void HGE_Impl::_PostError(char *error) +void HGE_Impl::_PostError(const char *error) { System_Log(error); strcpy(szError,error); |