Skip to content

Commit

Permalink
Rename playlist chart/chartkey lua functions
Browse files Browse the repository at this point in the history
  • Loading branch information
nico-abram authored Mar 4, 2018
1 parent aef0e60 commit 02775b6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/SongManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1552,14 +1552,14 @@ LUA_REGISTER_CLASS( SongManager )
class LunaPlaylist : public Luna<Playlist>
{
public:
static int GetChartlist(T* p, lua_State *L)
static int GetChartkeys(T* p, lua_State *L)
{
vector<string> keys = p->GetKeys();
LuaHelpers::CreateTableFromArray(keys, L);
return 1;
}

static int GetChartlistActual(T* p, lua_State *L)
static int GetCharts(T* p, lua_State *L)
{
lua_newtable(L);
for (size_t i = 0; i < p->chartlist.size(); ++i)
Expand Down Expand Up @@ -1611,8 +1611,8 @@ class LunaPlaylist : public Luna<Playlist>
LunaPlaylist()
{
ADD_METHOD(AddChart);
ADD_METHOD(GetChartlist);
ADD_METHOD(GetChartlistActual);
ADD_METHOD(GetChartkeys);
ADD_METHOD(GetCharts);
ADD_METHOD(GetNumCharts);
ADD_METHOD(GetName);
ADD_METHOD(GetSonglist);
Expand Down

0 comments on commit 02775b6

Please sign in to comment.