Exposed RageFile Flush function to Lua. Updated changelog.

This commit is contained in:
Kyzentun Keeslala
2015-06-03 16:41:10 -06:00
parent f133272807
commit 0a3a555cab
4 changed files with 27 additions and 0 deletions
+16
View File
@@ -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
+1
View File
@@ -1370,6 +1370,7 @@
<Function name='AtEOF'/>
<Function name='ClearError'/>
<Function name='Close'/>
<Function name='Flush'/>
<Function name='GetError'/>
<Function name='GetLine'/>
<Function name='Open'/>
+3
View File
@@ -4052,6 +4052,9 @@ save yourself some time, copy this for undocumented things:
<Function name='destroy' return='void' arguments=''>
Safely deletes the file handle.
</Function>
<Function name='Flush' return='' arguments=''>
Flushes the buffer for the file handle, writing any pending output to disk.
</Function>
<Function name='GetError' return='string' arguments=''>
Gets the last error message and returns it.
</Function>
+7
View File
@@ -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 );