-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The start of a long and arduous road to refactor this mess
- Loading branch information
Showing
49 changed files
with
185 additions
and
135 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/redscript_api/NewGamePlusSystem.cpp → src/GameSystem/NewGamePlusSystem.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
10 changes: 5 additions & 5 deletions
10
...script_api/definitions/playerSaveData.cpp → ...GameSystem/definitions/playerSaveData.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,30 @@ | ||
#pragma once | ||
#include <Parsing/CursorDef.hpp> | ||
|
||
#include "../cursorDef.hpp" | ||
namespace modsave | ||
{ | ||
constexpr auto FILE_MAGIC = 0x43534156; // CSAV | ||
constexpr auto FILE_DONE = 0x444F4E45; // DONE | ||
constexpr auto FILE_NODE = 0x4e4f4445; // NODE | ||
|
||
namespace modsave { | ||
constexpr auto FILE_MAGIC = 0x43534156; // CSAV | ||
constexpr auto FILE_DONE = 0x444F4E45; // DONE | ||
constexpr auto FILE_NODE = 0x4e4f4445; // NODE | ||
struct SaveHeader | ||
{ | ||
std::uint32_t saveVersion{}; | ||
std::uint32_t gameVersion{}; | ||
std::wstring gameDefinition{}; | ||
std::uint64_t timeStamp{}; | ||
std::uint32_t archiveVersion{}; | ||
|
||
struct SaveHeader { | ||
std::uint32_t saveVersion{}; | ||
std::uint32_t gameVersion{}; | ||
std::wstring gameDefinition{}; | ||
std::uint64_t timeStamp{}; | ||
std::uint32_t archiveVersion{}; | ||
static SaveHeader fromCursor(FileCursor& fileCursor) | ||
{ | ||
SaveHeader header{}; | ||
header.saveVersion = fileCursor.readUInt(); | ||
header.gameVersion = fileCursor.readUInt(); | ||
header.gameDefinition = fileCursor.readLengthPrefixedString(); | ||
header.timeStamp = fileCursor.readUInt64(); | ||
header.archiveVersion = fileCursor.readUInt(); | ||
|
||
static SaveHeader fromCursor(FileCursor& fileCursor) { | ||
SaveHeader header{}; | ||
header.saveVersion = fileCursor.readUInt(); | ||
header.gameVersion = fileCursor.readUInt(); | ||
header.gameDefinition = fileCursor.readLengthPrefixedString(); | ||
header.timeStamp = fileCursor.readUInt64(); | ||
header.archiveVersion = fileCursor.readUInt(); | ||
|
||
return header; | ||
} | ||
}; | ||
} | ||
return header; | ||
} | ||
}; | ||
} // namespace modsave |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
src/parsing/definitions/nodeParsers/scriptable/helpers/classDefinitions/craftBook.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
#pragma once | ||
|
||
#include <RED4ext/RED4ext.hpp> | ||
#include <RedLib.hpp> | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
src/parsing/definitions/nodeParsers/scriptable/scriptableContainerNodeV2.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#include "scriptableContainerNodeV2.hpp" | ||
#include "ScriptableContainerNodeV2.hpp" | ||
|
||
using namespace Red; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
src/parsing/definitions/nodeParsers/stats/statsSystemNode.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
src/parsing/definitions/nodeParsers/wardrobe/wardrobeSystemNode.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.