OpenBarnyard
Loading...
Searching...
No Matches
TFileManager_Win.cpp
Go to the documentation of this file.
1
#include "ToshiPCH.h"
2
#include "
TNativeFile_Win.h
"
3
4
#include <windows.h>
5
6
//-----------------------------------------------------------------------------
7
// Enables memory debugging.
8
// Note: Should be the last include!
9
//-----------------------------------------------------------------------------
10
#include <
Core/TMemoryDebugOn.h
>
11
12
TOSHI_NAMESPACE_START
13
14
// $Barnyard: FUNCTION 006d90f0
15
TBOOL
TFileManager::Create
()
16
{
17
CreateCommon();
18
auto
fileManager =
TFileManager::GetSingletonSafe
();
19
20
CHAR currentDir[ 0x200 ];
21
DWORD dirLength = GetCurrentDirectoryA(
sizeof
( currentDir ), currentDir );
22
TASSERT
( dirLength > 0,
"The directory's length is 0"
);
23
24
(
new
TNativeFileSystem
(
"local"
) )->SetPrefix( currentDir );
25
(
new
TNativeFileSystem
(
"abs"
) )->SetPrefix(
""
);
26
(
new
TNativeFileSystem
(
"null"
) )->SetPrefix(
""
);
27
28
fileManager->SetSystemPath(
"local"
);
29
30
return
TTRUE
;
31
}
32
33
TOSHI_NAMESPACE_END
TMemoryDebugOn.h
TNativeFile_Win.h
TASSERT
#define TASSERT(X,...)
Definition
Defines.h:138
TOSHI_NAMESPACE_START
#define TOSHI_NAMESPACE_START
Definition
Defines.h:47
TOSHI_NAMESPACE_END
#define TOSHI_NAMESPACE_END
Definition
Defines.h:50
TTRUE
#define TTRUE
Definition
Typedefs.h:25
TBOOL
bool TBOOL
Definition
Typedefs.h:6
TFileManager::Create
static TBOOL Create()
Definition
TFileManager_Win.cpp:15
TNativeFileSystem
Definition
TNativeFile_Win.h:7
TSingleton< TFileManager >::GetSingletonSafe
static TFORCEINLINE TFileManager * GetSingletonSafe()
Definition
TSingleton.h:37
D:
_dev
OpenBarnyard
Source
Toshi
Source
Platform
Windows
TFileManager_Win.cpp
Generated by
1.13.2