From 0a3a555cab4023550703eb03bc823753606213d2 Mon Sep 17 00:00:00 2001 From: Kyzentun Keeslala Date: Wed, 3 Jun 2015 16:41:10 -0600 Subject: [PATCH] Exposed RageFile Flush function to Lua. Updated changelog. --- Docs/Changelog_sm5.txt | 16 ++++++++++++++++ Docs/Luadoc/Lua.xml | 1 + Docs/Luadoc/LuaDocumentation.xml | 3 +++ src/RageFile.cpp | 7 +++++++ 4 files changed, 27 insertions(+) diff --git a/Docs/Changelog_sm5.txt b/Docs/Changelog_sm5.txt index 31447b0da0..a1a191eb6e 100644 --- a/Docs/Changelog_sm5.txt +++ b/Docs/Changelog_sm5.txt @@ -4,6 +4,22 @@ The StepMania 5 Changelog covers all post-sm-ssc changes. For a list of changes from StepMania 4 alpha 5 to sm-ssc v1.2.5, see Changelog_sm-ssc.txt. ________________________________________________________________________________ +2015/06/03 +---------- +* [Actor] bounce and bob effects no longer round pixel coords. [kyzentun] +* [RageFile] Exposed Flush function to Lua. [kyzentun] + +2015/05/29 +---------- +* [OptionsList] The OptionsListQuickChange, OptionsListLeft, and + OptionsListRight messages now have a Selection parameter that has the id of + the selection the player moved to. [nixtrix] + +2015/05/24 +---------- +* [Gameplay] Autokeysounds are no longer twice as loud when playing + keysounded charts with two players. [nixtrix] + 2015/05/15 ---------- * [BMS] .lua files defined in the #BMP tags now work as BG animations, and the diff --git a/Docs/Luadoc/Lua.xml b/Docs/Luadoc/Lua.xml index 131b9bdfd3..170755ff33 100644 --- a/Docs/Luadoc/Lua.xml +++ b/Docs/Luadoc/Lua.xml @@ -1370,6 +1370,7 @@ + diff --git a/Docs/Luadoc/LuaDocumentation.xml b/Docs/Luadoc/LuaDocumentation.xml index fb257e6a8c..bf4546734f 100644 --- a/Docs/Luadoc/LuaDocumentation.xml +++ b/Docs/Luadoc/LuaDocumentation.xml @@ -4052,6 +4052,9 @@ save yourself some time, copy this for undocumented things: Safely deletes the file handle. + + Flushes the buffer for the file handle, writing any pending output to disk. + Gets the last error message and returns it. diff --git a/src/RageFile.cpp b/src/RageFile.cpp index 72d110634f..d0e58635f5 100644 --- a/src/RageFile.cpp +++ b/src/RageFile.cpp @@ -344,6 +344,12 @@ public: return 1; } + static int Flush(T* p, lua_State* L) + { + p->Flush(); + COMMON_RETURN_SELF; + } + static int Read( T* p, lua_State *L ) { RString string; @@ -411,6 +417,7 @@ public: ADD_METHOD( Open ); ADD_METHOD( Close ); ADD_METHOD( Write ); + ADD_METHOD(Flush); ADD_METHOD( Read ); ADD_METHOD( ReadBytes ); ADD_METHOD( Seek );