mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-18 11:19:10 +00:00
Remove hsFiles in favor of plFilesystem stuff
This commit is contained in:
@ -83,7 +83,6 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
#include "pfConsole/pfConsoleDirSrc.h"
|
||||
#include "plScene/plPageTreeMgr.h"
|
||||
#include "plScene/plVisMgr.h"
|
||||
#include "plFile/hsFiles.h"
|
||||
|
||||
#include "pfKI/pfKI.h"
|
||||
|
||||
@ -1635,19 +1634,17 @@ void plClient::IPatchGlobalAgeFiles( void )
|
||||
void plClient::InitDLLs()
|
||||
{
|
||||
hsStatusMessage("Init dlls client\n");
|
||||
char str[255];
|
||||
typedef void (*PInitGlobalsFunc) (hsResMgr *, plFactory *, plTimerCallbackManager *, plTimerShare*,
|
||||
plNetClientApp*);
|
||||
|
||||
hsFolderIterator modDllFolder("ModDLL\\");
|
||||
while (modDllFolder.NextFileSuffix(".dll"))
|
||||
std::vector<plFileName> dlls = plFileSystem::ListDir("ModDLL", "*.dll");
|
||||
for (auto iter = dlls.begin(); iter != dlls.end(); ++iter)
|
||||
{
|
||||
modDllFolder.GetPathAndName(str);
|
||||
HMODULE hMod = LoadLibrary(str);
|
||||
HMODULE hMod = LoadLibraryW(iter->AsString().ToWchar());
|
||||
if (hMod)
|
||||
{
|
||||
PInitGlobalsFunc initGlobals = (PInitGlobalsFunc)GetProcAddress(hMod, "InitGlobals");
|
||||
initGlobals(hsgResMgr::ResMgr(), plFactory::GetTheFactory(), plgTimerCallbackMgr::Mgr(),
|
||||
(*initGlobals)(hsgResMgr::ResMgr(), plFactory::GetTheFactory(), plgTimerCallbackMgr::Mgr(),
|
||||
hsTimer::GetTheTimer(), plNetClientApp::GetInstance());
|
||||
fLoadedDLLs.Append(hMod);
|
||||
}
|
||||
@ -2495,7 +2492,7 @@ void plClient::IOnAsyncInitComplete () {
|
||||
|
||||
// run fni in the Aux Init dir
|
||||
if (fpAuxInitDir)
|
||||
{
|
||||
{
|
||||
dirSrc.ParseDirectory(fpAuxInitDir, "net*.fni"); // connect to net first
|
||||
dirSrc.ParseDirectory(fpAuxInitDir, "*.fni");
|
||||
}
|
||||
|
Reference in New Issue
Block a user