mirror of
https://github.com/1dot13/source.git
synced 2026-07-29 13:52:17 +02:00
Win 98 VFS Fixes (by BirdFlu)
- add ini option to disable UNICODE in VFS (and use the current codepage) - when UNICODE disabled in VFS, open files with default encoding (instead of UTF8/16) filenames git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@3118 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
+7
-4
@@ -10,12 +10,14 @@
|
||||
#include "PropertyContainer.h"
|
||||
#include "Tools/Log.h"
|
||||
|
||||
//#define LOG_VFS_INITIALIZATION
|
||||
#define LOG_VFS_INITIALIZATION
|
||||
#ifdef LOG_VFS_INITIALIZATION
|
||||
#define LOG(x) (x)
|
||||
#define LOG(x) x
|
||||
#else
|
||||
#define LOG(x)
|
||||
#endif
|
||||
|
||||
extern bool g_VFS_NO_UNICODE;
|
||||
/********************************************************************/
|
||||
/********************************************************************/
|
||||
|
||||
@@ -41,8 +43,9 @@ bool InitVirtualFileSystem(CPropertyContainer& oVFSProps)
|
||||
|
||||
vfs::CVirtualFileSystem *pVirtFileSys = GetVFS();
|
||||
|
||||
LOG(_LOG << "Initializing Virtual File System");
|
||||
LOG(_LOG.Endl());
|
||||
LOG(_LOG << "Initializing Virtual File System" << CLog::endl);
|
||||
|
||||
if(g_VFS_NO_UNICODE){ LOG(_LOG.Endl() << "UNICODE disabled" << CLog::endl); }
|
||||
|
||||
LOG(_LOG.Endl() << "reading profiles .. ");
|
||||
std::list<utf8string> lProfiles, lLocSections;
|
||||
|
||||
Reference in New Issue
Block a user