about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2022-09-05 12:38:11 -0700
committerKartik K. Agaram <vc@akkartik.com>2022-09-05 12:38:11 -0700
commit5ab541f160132d49697a44dea9e418ae10bd6533 (patch)
tree14241a68ce9ff3c9d4c4244a71840f939917230e
parent528c64d690c2d1cb4b3b70c37008b3ba37d904b9 (diff)
downloadtext.love-5ab541f160132d49697a44dea9e418ae10bd6533.tar.gz
.
-rw-r--r--main.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/main.lua b/main.lua
index dad1723..efb7419 100644
--- a/main.lua
+++ b/main.lua
@@ -52,7 +52,7 @@ function App.load()
         load_file_from_source_or_save_directory('undo.lua')
       load_file_from_source_or_save_directory('text_tests.lua')
     load_file_from_source_or_save_directory('run_tests.lua')
-  else
+  elseif Current_app == 'source' then
     load_file_from_source_or_save_directory('source_file.lua')
     load_file_from_source_or_save_directory('source.lua')
       load_file_from_source_or_save_directory('commands.lua')
@@ -65,6 +65,8 @@ function App.load()
         load_file_from_source_or_save_directory('colorize.lua')
       load_file_from_source_or_save_directory('source_text_tests.lua')
     load_file_from_source_or_save_directory('source_tests.lua')
+  else
+    assert(false, 'unknown app "'..Current_app..'"')
   end
 end