diff options
author | Campbell Barton <ideasman42@gmail.com> | 2008-09-12 06:15:16 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2008-09-12 06:15:16 +0400 |
commit | 0dea748e01dab697d2f8ac245bbd5e925cd732ce (patch) | |
tree | 4699d5a262f3ff2a78643fd35243f0225b9397b3 /source/gameengine/Ketsji/KX_PythonInit.h | |
parent | 75841bc97f82836e7af5524b79220b984da3b4f8 (diff) |
save and load configuration actuator, (option in game actuator menu)
saves a marshal'd GameLogic.globalDict to the blendfile path with the blend extension replaced with bgeconf
Use this in YoFrankie to save keyboard layout and graphics quality settings.
Diffstat (limited to 'source/gameengine/Ketsji/KX_PythonInit.h')
-rw-r--r-- | source/gameengine/Ketsji/KX_PythonInit.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/gameengine/Ketsji/KX_PythonInit.h b/source/gameengine/Ketsji/KX_PythonInit.h index 388d073c6db..28d9d72a4c3 100644 --- a/source/gameengine/Ketsji/KX_PythonInit.h +++ b/source/gameengine/Ketsji/KX_PythonInit.h @@ -49,6 +49,10 @@ void exitGamePlayerPythonScripting(); PyObject* initGamePythonScripting(const STR_String& progname, TPythonSecurityLevel level); void exitGamePythonScripting(); +void pathGamePythonConfig( char *path ); +int saveGamePythonConfig( char **marshal_buffer); +int loadGamePythonConfig(char *marshal_buffer, int marshal_length); + void PHY_SetActiveScene(class KX_Scene* scene); class KX_Scene* PHY_GetActiveScene(); #include "MT_Vector3.h" |