diff options
| author | jacqueline <me@jacqueline.id.au> | 2024-08-28 15:30:53 +1000 |
|---|---|---|
| committer | jacqueline <me@jacqueline.id.au> | 2024-08-28 15:30:53 +1000 |
| commit | 3421bd652c39b253872e43d3b6e43664bd0b66e2 (patch) | |
| tree | 90a6cc3980e32648b8488db281dc838e3ffbdd7d /src/tangara/lua/lua_filesystem.cpp | |
| parent | af7a70450e3ceaaf291aa09b9383b50b879759d9 (diff) | |
| download | tangara-fw-3421bd652c39b253872e43d3b6e43664bd0b66e2.tar.gz | |
When clicking a track in the file browser, play it
Includes adding a `playback.is_playable` for working out whether or not
a particular file is able to be played
Diffstat (limited to 'src/tangara/lua/lua_filesystem.cpp')
| -rw-r--r-- | src/tangara/lua/lua_filesystem.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/tangara/lua/lua_filesystem.cpp b/src/tangara/lua/lua_filesystem.cpp index e3a3018d..9c2ea880 100644 --- a/src/tangara/lua/lua_filesystem.cpp +++ b/src/tangara/lua/lua_filesystem.cpp @@ -117,12 +117,6 @@ static auto file_entry_is_hidden(lua_State* state) -> int { return 1; } -static auto file_entry_is_track(lua_State* state) -> int { - lua::FileEntry* entry = check_file_entry(state, 1); - lua_pushboolean(state, entry->isTrack); - return 1; -} - static auto file_entry_name(lua_State* state) -> int { lua::FileEntry* entry = check_file_entry(state, 1); lua_pushlstring(state, entry->name.c_str(), entry->name.size()); @@ -139,7 +133,6 @@ static const struct luaL_Reg kFileEntryFuncs[] = {{"filepath", file_entry_path}, {"name", file_entry_name}, {"is_directory", file_entry_is_dir}, {"is_hidden", file_entry_is_hidden}, - {"is_track", file_entry_is_track}, {"__tostring", file_entry_name}, {"__gc", file_entry_gc}, {NULL, NULL}}; |
