mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-21 00:19:29 +02:00
Attempt to fix & improve error detection:
- use std::fstream instead of boost::iostreams for properly working flush - removed some catch-all blocks - reduce catch scope of some try/catch blocks to clearly indicate intent
This commit is contained in:
@ -48,17 +48,10 @@ DLL_LINKAGE void preinitDLL(CConsoleHandler * Console, bool onlyEssential, bool
|
||||
{
|
||||
console = Console;
|
||||
VLC = new LibClasses();
|
||||
try
|
||||
{
|
||||
VLC->loadFilesystem(extractArchives);
|
||||
settings.init();
|
||||
VLC->loadModFilesystem(onlyEssential);
|
||||
}
|
||||
catch(...)
|
||||
{
|
||||
handleException();
|
||||
throw;
|
||||
}
|
||||
VLC->loadFilesystem(extractArchives);
|
||||
settings.init();
|
||||
VLC->loadModFilesystem(onlyEssential);
|
||||
|
||||
}
|
||||
|
||||
DLL_LINKAGE void loadDLLClasses(bool onlyEssential)
|
||||
|
Reference in New Issue
Block a user