Commit 85cba2b 1 parent 3efa79b commit 85cba2b Copy full SHA for 85cba2b
File tree 4 files changed +16
-12
lines changed
4 files changed +16
-12
lines changed Original file line number Diff line number Diff line change 4
4
#ifndef _LIBULTRASHIP_CLASSES_H
5
5
#define _LIBULTRASHIP_CLASSES_H
6
6
7
+ #include "resource/archive/ArchiveManager.h"
7
8
#include "resource/archive/Archive.h"
9
+ #include "resource/archive/OtrArchive.h"
10
+ #include "resource/archive/O2rArchive.h"
8
11
#include "resource/ResourceManager.h"
9
12
#include "Context.h"
10
13
#include "window/Window.h"
Original file line number Diff line number Diff line change @@ -34,17 +34,18 @@ class Archive {
34
34
const std::string& GetPath ();
35
35
bool IsLoaded ();
36
36
37
+ virtual bool LoadRaw () = 0;
38
+ virtual bool UnloadRaw () = 0;
39
+ virtual std::shared_ptr<File> LoadFileRaw (const std::string& filePath) = 0;
40
+ virtual std::shared_ptr<File> LoadFileRaw (uint64_t hash) = 0;
41
+
37
42
protected:
38
43
static std::shared_ptr<ResourceInitData> ReadResourceInitDataBinary (const std::string& filePath,
39
44
std::shared_ptr<BinaryReader> headerReader);
40
45
static std::shared_ptr<ResourceInitData> ReadResourceInitDataXml (const std::string& filePath,
41
46
std::shared_ptr<tinyxml2::XMLDocument> document);
42
- virtual std::shared_ptr<File> LoadFileRaw (const std::string& filePath) = 0;
43
- virtual std::shared_ptr<File> LoadFileRaw (uint64_t hash) = 0;
44
47
virtual std::shared_ptr<ResourceInitData> LoadFileMeta (const std::string& filePath) = 0;
45
48
virtual std::shared_ptr<ResourceInitData> LoadFileMeta (uint64_t hash) = 0;
46
- virtual bool LoadRaw () = 0;
47
- virtual bool UnloadRaw () = 0;
48
49
49
50
void SetLoaded (bool isLoaded);
50
51
void SetGameVersion (uint32_t gameVersion);
Original file line number Diff line number Diff line change @@ -18,15 +18,15 @@ class O2rArchive : virtual public Archive {
18
18
O2rArchive (const std::string& archivePath);
19
19
~O2rArchive ();
20
20
21
- protected:
21
+ bool LoadRaw ();
22
+ bool UnloadRaw ();
22
23
std::shared_ptr<File> LoadFileRaw (const std::string& filePath);
23
24
std::shared_ptr<File> LoadFileRaw (uint64_t hash);
25
+
26
+ protected:
24
27
std::shared_ptr<ResourceInitData> LoadFileMeta (const std::string& filePath);
25
28
std::shared_ptr<ResourceInitData> LoadFileMeta (uint64_t hash);
26
29
27
- bool LoadRaw ();
28
- bool UnloadRaw ();
29
-
30
30
private:
31
31
};
32
32
} // namespace LUS
Original file line number Diff line number Diff line change @@ -24,15 +24,15 @@ class OtrArchive : virtual public Archive {
24
24
OtrArchive (const std::string& archivePath);
25
25
~OtrArchive ();
26
26
27
- protected:
27
+ bool LoadRaw ();
28
+ bool UnloadRaw ();
28
29
std::shared_ptr<File> LoadFileRaw (const std::string& filePath);
29
30
std::shared_ptr<File> LoadFileRaw (uint64_t hash);
31
+
32
+ protected:
30
33
std::shared_ptr<ResourceInitData> LoadFileMeta (const std::string& filePath);
31
34
std::shared_ptr<ResourceInitData> LoadFileMeta (uint64_t hash);
32
35
33
- bool LoadRaw ();
34
- bool UnloadRaw ();
35
-
36
36
private:
37
37
HANDLE mHandle ;
38
38
};
You can’t perform that action at this time.
0 commit comments