-
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.
3rdParty: update Spore-ModAPI to v2.5.301
- Loading branch information
1 parent
46786ad
commit bb671fd
Showing
17 changed files
with
916 additions
and
76 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
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 |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
[subrepo] | ||
remote = [email protected]:emd4600/Spore-ModAPI.git | ||
branch = master | ||
commit = 42b62a380901f9c0e4ae14b120c4abeb55c54750 | ||
parent = ab127d265d02d9dca33d9bb9a4b04169c455ceec | ||
commit = e7954a61f5c33f82eea47c047b2cda6c9d383c3d | ||
parent = 46786ad51ae2936314c0a1cd80f579cd1e107c73 | ||
method = merge | ||
cmdver = 0.4.6 |
348 changes: 319 additions & 29 deletions
348
3rdParty/Spore-ModAPI/SDKtoGhidra/SporeGhidra_disk.xml
Large diffs are not rendered by default.
Oops, something went wrong.
345 changes: 319 additions & 26 deletions
345
3rdParty/Spore-ModAPI/SDKtoGhidra/SporeGhidra_march2017.xml
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
67 changes: 67 additions & 0 deletions
67
3rdParty/Spore-ModAPI/Spore ModAPI/Spore/Simulator/SubSystem/GamePersistenceManager.h
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 |
---|---|---|
@@ -0,0 +1,67 @@ | ||
#pragma once | ||
|
||
#include <Spore\App\IMessageListener.h> | ||
#include <Spore\Simulator\SubSystem\cStrategy.h> | ||
#include <Spore\Simulator\SubSystem\StarManager.h> | ||
#include <EASTL\string.h> | ||
|
||
#define GamePersistenceManager (*Simulator::cGamePersistenceManager::Get()) | ||
|
||
namespace Simulator | ||
{ | ||
struct GameLoadParameters | ||
{ | ||
/// This will be appended with `.spo` to create the game file name. | ||
/* 00h */ eastl::string16 mGameName; | ||
/* 10h */ eastl::string16 mStarName; | ||
/* 20h */ eastl::string16 field_20; | ||
/* 30h */ char padding_30[0x48 - 0x30]; | ||
/* 48h */ cSpeciesProfile* mpCreatureSpecies; | ||
/* 4Ch */ ResourceKey mCreatureKey; | ||
/* 58h */ ResourceKey field_58; | ||
/* 5Ch */ char padding_64[0x7C - 0x64]; | ||
/* 7Ch */ StarID mStarID {0}; | ||
/* 80h */ char padding_80[0xA0 - 0x80]; | ||
/* A0h */ Difficulty mDifficulty; | ||
/// Game mode to load | ||
/* A4h */ TechLevel mGameMode; | ||
/* A8h */ char padding_A8[0xB0 - 0xA8]; | ||
/* B0h */ int field_B0; | ||
}; | ||
ASSERT_SIZE(GameLoadParameters, 0xB4); // I don't know if this is the real size | ||
|
||
class cGamePersistenceManager | ||
: public App::IMessageListener | ||
, public cStrategy | ||
{ | ||
public: | ||
static cGamePersistenceManager* Get(); | ||
|
||
/// Call GameNounManager.EnsurePlayer() to avoid game crashes. | ||
/* 10h */ virtual bool LoadGame(const GameLoadParameters& parameters); | ||
//TODO more methods | ||
|
||
/* 14h */ virtual void func14h(int); | ||
/* 18h */ virtual void func18h(int, int); | ||
/* 1Ch */ virtual bool func1Ch(); | ||
/* 20h */ virtual bool func1Ch(uint32_t); | ||
|
||
public: | ||
/* 20h */ int field_20; | ||
/* 24h */ int field_24; | ||
/* 28h */ int field_28; | ||
/* 2Ch */ int field_2C; | ||
/* 30h */ int field_30; | ||
/* 34h */ eastl::string16 field_34; | ||
/* 44h */ bool field_44; | ||
/* 45h */ bool field_45; | ||
/* 46h */ bool field_46; | ||
/* 47h */ bool field_47; | ||
/* 48h */ int field_48; | ||
}; | ||
ASSERT_SIZE(cGamePersistenceManager, 0x4C); | ||
|
||
namespace Addresses(cGamePersistenceManager) { | ||
DeclareAddress(Get); // 0xB3D2A0 0xB3D440 | ||
} | ||
} |
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.