diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-03-17 23:13:04 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-03-17 23:13:04 +0400 |
commit | 09c41019a8ecb259b2376b5c22c99f54b59f8f24 (patch) | |
tree | 64802a773768eaae39b8ec315b582123f16707fa /source/gameengine/GamePlayer | |
parent | 16b82845eee4198b2d56aa5a5c373008f5070f7f (diff) |
use const pointers for file loading and booleans for animation system return values passed as pointers.
Diffstat (limited to 'source/gameengine/GamePlayer')
-rw-r--r-- | source/gameengine/GamePlayer/common/GPC_Engine.cpp | 6 | ||||
-rw-r--r-- | source/gameengine/GamePlayer/common/GPC_Engine.h | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/source/gameengine/GamePlayer/common/GPC_Engine.cpp b/source/gameengine/GamePlayer/common/GPC_Engine.cpp index 11d648762c8..1a90fb8aca8 100644 --- a/source/gameengine/GamePlayer/common/GPC_Engine.cpp +++ b/source/gameengine/GamePlayer/common/GPC_Engine.cpp @@ -155,14 +155,14 @@ bool GPC_Engine::Start(const char *filename) } -bool GPC_Engine::Start(unsigned char *blenderDataBuffer, - unsigned int blenderDataBufferSize) +bool GPC_Engine::Start(const void *blenderDataBuffer, + unsigned int blenderDataBufferSize) { ReportList reports; BlendFileData *bfd; BKE_reports_init(&reports, RPT_STORE); - bfd= BLO_read_from_memory(blenderDataBuffer, blenderDataBufferSize, &reports); + bfd = BLO_read_from_memory(blenderDataBuffer, blenderDataBufferSize, &reports); BKE_reports_clear(&reports); if (!bfd) { diff --git a/source/gameengine/GamePlayer/common/GPC_Engine.h b/source/gameengine/GamePlayer/common/GPC_Engine.h index 6247bd630bb..3a4fd9c81d6 100644 --- a/source/gameengine/GamePlayer/common/GPC_Engine.h +++ b/source/gameengine/GamePlayer/common/GPC_Engine.h @@ -103,7 +103,7 @@ public: // different prototypes for Unix and Windows void StartLoadingAnimation(); bool Start(const char *filename); // file-on-disk starter - bool Start(unsigned char *blenderDataBuffer, + bool Start(const void *blenderDataBuffer, unsigned int blenderDataBufferSize); // file-in-memory starter void Stop(); |