diff options
| author | oy <Tom_Adams@web.de> | 2010-10-06 23:07:35 +0200 |
|---|---|---|
| committer | oy <Tom_Adams@web.de> | 2010-10-06 23:07:35 +0200 |
| commit | 3a98f7a048c044ce0d870320fc0b1def0db4f7fb (patch) | |
| tree | 7dfa1826e537355b37d00e77558ca623a915bac2 /src/game/client/gameclient.cpp | |
| parent | a62a7413d1ff25c8e07657b96a485f001004619a (diff) | |
| download | zcatch-3a98f7a048c044ce0d870320fc0b1def0db4f7fb.tar.gz zcatch-3a98f7a048c044ce0d870320fc0b1def0db4f7fb.zip | |
added mod system. Closes #34
Diffstat (limited to 'src/game/client/gameclient.cpp')
| -rw-r--r-- | src/game/client/gameclient.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/game/client/gameclient.cpp b/src/game/client/gameclient.cpp index 11841e5b..2805800d 100644 --- a/src/game/client/gameclient.cpp +++ b/src/game/client/gameclient.cpp @@ -224,7 +224,7 @@ void CGameClient::OnInit() //m_pServerBrowser = Kernel()->RequestInterface<IServerBrowser>(); // set the language - g_Localization.Load(g_Config.m_ClLanguagefile, Console()); + g_Localization.Load(g_Config.m_ClLanguagefile, Storage(), Console()); // init all components for(int i = 0; i < m_All.m_Num; i++) @@ -239,7 +239,12 @@ void CGameClient::OnInit() // load default font static CFont *pDefaultFont; //default_font = gfx_font_load("data/fonts/sazanami-gothic.ttf"); - pDefaultFont = TextRender()->LoadFont("data/fonts/vera.ttf"); + + char aFilename[512]; + IOHANDLE File = Storage()->OpenFile("fonts/vera.ttf", IOFLAG_READ, IStorage::TYPE_ALL, aFilename, sizeof(aFilename)); + if(File) + io_close(File); + pDefaultFont = TextRender()->LoadFont(aFilename); TextRender()->SetDefaultFont(pDefaultFont); g_Config.m_ClThreadsoundloading = 0; @@ -254,7 +259,7 @@ void CGameClient::OnInit() for(int i = 0; i < g_pData->m_NumImages; i++) { g_GameClient.m_pMenus->RenderLoading(gs_LoadCurrent/(float)gs_LoadTotal); - g_pData->m_aImages[i].m_Id = Graphics()->LoadTexture(g_pData->m_aImages[i].m_pFilename, CImageInfo::FORMAT_AUTO, 0); + g_pData->m_aImages[i].m_Id = Graphics()->LoadTexture(g_pData->m_aImages[i].m_pFilename, IStorage::TYPE_ALL, CImageInfo::FORMAT_AUTO, 0); gs_LoadCurrent++; } |