diff options
| author | Ray <raysan5@gmail.com> | 2016-08-07 11:14:08 +0200 |
|---|---|---|
| committer | Ray <raysan5@gmail.com> | 2016-08-07 11:14:08 +0200 |
| commit | 2c079d7c6ea0a5a252f0d3f93bc39e8f5700e23a (patch) | |
| tree | 27e6fede3eff7a198a28502d5d11efa907d3da9f /examples/core_drop_files.lua | |
| parent | 46248b0922846e4beb386c5cf8fc12ebd3219b72 (diff) | |
| download | raylib-2c079d7c6ea0a5a252f0d3f93bc39e8f5700e23a.tar.gz raylib-2c079d7c6ea0a5a252f0d3f93bc39e8f5700e23a.zip | |
Review Lua examples and formatting
Diffstat (limited to 'examples/core_drop_files.lua')
| -rw-r--r-- | examples/core_drop_files.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/core_drop_files.lua b/examples/core_drop_files.lua index 99ab4325..1d27e618 100644 --- a/examples/core_drop_files.lua +++ b/examples/core_drop_files.lua @@ -19,7 +19,7 @@ local screenHeight = 450 InitWindow(screenWidth, screenHeight, "raylib [core] example - drop files") local count = 0 ---char **droppedFiles -- ??? +local droppedFiles = {} SetTargetFPS(60) ------------------------------------------------------------------------------------------- @@ -29,9 +29,9 @@ while not WindowShouldClose() do -- Detect window close button or ESC key -- Update --------------------------------------------------------------------------------------- if (IsFileDropped()) then - droppedFiles = GetDroppedFiles() - count = #droppedFiles - end + droppedFiles = GetDroppedFiles() + count = #droppedFiles + end --------------------------------------------------------------------------------------- -- Draw |
