CommonLibVR
GlobalPaths.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "RE/B/BSFixedString.h"
4 #include "RE/B/BSTArray.h"
5 #include "RE/B/BSTSingleton.h"
6 #include "RE/L/Location.h"
7 
8 namespace RE
9 {
10  namespace BSResource
11  {
12  class GlobalPaths :
13  public Location, // 00
14  public BSTSingletonSDM<GlobalPaths> // 10
15  {
16  public:
17  inline static constexpr auto RTTI = RTTI_BSResource____GlobalPaths;
18  inline static constexpr auto VTABLE = VTABLE_BSResource____GlobalPaths;
19 
20  ~GlobalPaths() override; // 00
21 
22  // override (Location)
23  ErrorCode DoCreateStream(const char* a_path, BSTSmartPointer<Stream>& a_stream, Location*& a_location, bool a_readOnly) override; // 03
24  ErrorCode DoCreateAsyncStream(const char* a_path, BSTSmartPointer<AsyncStream>& a_out, Location*& a_location, bool a_readOnly) override; // 04
25  ErrorCode DoTraversePrefix(const char* a_path, LocationTraverser& a_traverser) override; // 05
26  ErrorCode DoGetInfo1(const char* a_path, Info& a_info, Location*& a_location) override; // 06
27  ErrorCode DoGetInfo2(const char* a_path, Info& a_info, LocationTraverser* a_traverser) override; // 07
28  ErrorCode DoDelete(const char* a_path) override; // 08
29 
30  // members
31  std::uint8_t pad11; // 11
32  std::uint16_t pad12; // 12
33  std::uint32_t pad14; // 14
36  };
37  static_assert(sizeof(GlobalPaths) == 0x38);
38  }
39 }
Definition: GlobalPaths.h:15
ErrorCode DoTraversePrefix(const char *a_path, LocationTraverser &a_traverser) override
ErrorCode DoGetInfo2(const char *a_path, Info &a_info, LocationTraverser *a_traverser) override
ErrorCode DoCreateAsyncStream(const char *a_path, BSTSmartPointer< AsyncStream > &a_out, Location *&a_location, bool a_readOnly) override
ErrorCode DoGetInfo1(const char *a_path, Info &a_info, Location *&a_location) override
Location * rootLocation
Definition: GlobalPaths.h:35
static constexpr auto VTABLE
Definition: GlobalPaths.h:18
std::uint8_t pad11
Definition: GlobalPaths.h:31
std::uint32_t pad14
Definition: GlobalPaths.h:33
ErrorCode DoCreateStream(const char *a_path, BSTSmartPointer< Stream > &a_stream, Location *&a_location, bool a_readOnly) override
ErrorCode DoDelete(const char *a_path) override
std::uint16_t pad12
Definition: GlobalPaths.h:32
BSTArray< BSFixedString > names
Definition: GlobalPaths.h:34
static constexpr auto RTTI
Definition: GlobalPaths.h:17
Definition: LocationTraverser.h:10
Definition: Location.h:17
Definition: BSTArray.h:378
Definition: BSTSmartPointer.h:37
ErrorCode
Definition: ErrorCodes.h:8
Definition: AbsorbEffect.h:6
constexpr REL::ID RTTI_BSResource____GlobalPaths(static_cast< std::uint64_t >(690359))
constexpr std::array< REL::ID, 1 > VTABLE_BSResource____GlobalPaths
Definition: Offsets_VTABLE.h:9416
Definition: Info.h:10
Definition: BSTSingleton.h:50