From b31518cfb522c308db9f064b31b4b59d4172f351 Mon Sep 17 00:00:00 2001 From: Wilma456 Date: Sat, 20 May 2017 12:51:01 +0200 Subject: [PATCH] Add .dat extension to all redirection levels --- .../lua/rom/programs/fun/advanced/levels/{0 => 0.dat} | 0 .../lua/rom/programs/fun/advanced/levels/{1 => 1.dat} | 0 .../lua/rom/programs/fun/advanced/levels/{10 => 10.dat} | 0 .../lua/rom/programs/fun/advanced/levels/{11 => 11.dat} | 0 .../lua/rom/programs/fun/advanced/levels/{12 => 12.dat} | 0 .../lua/rom/programs/fun/advanced/levels/{2 => 2.dat} | 0 .../lua/rom/programs/fun/advanced/levels/{3 => 3.dat} | 0 .../lua/rom/programs/fun/advanced/levels/{4 => 4.dat} | 0 .../lua/rom/programs/fun/advanced/levels/{5 => 5.dat} | 0 .../lua/rom/programs/fun/advanced/levels/{6 => 6.dat} | 0 .../lua/rom/programs/fun/advanced/levels/{7 => 7.dat} | 0 .../lua/rom/programs/fun/advanced/levels/{8 => 8.dat} | 0 .../lua/rom/programs/fun/advanced/levels/{9 => 9.dat} | 0 .../computercraft/lua/rom/programs/fun/advanced/redirection.lua | 2 +- 14 files changed, 1 insertion(+), 1 deletion(-) rename src/main/resources/assets/computercraft/lua/rom/programs/fun/advanced/levels/{0 => 0.dat} (100%) rename src/main/resources/assets/computercraft/lua/rom/programs/fun/advanced/levels/{1 => 1.dat} (100%) rename src/main/resources/assets/computercraft/lua/rom/programs/fun/advanced/levels/{10 => 10.dat} (100%) rename src/main/resources/assets/computercraft/lua/rom/programs/fun/advanced/levels/{11 => 11.dat} (100%) rename src/main/resources/assets/computercraft/lua/rom/programs/fun/advanced/levels/{12 => 12.dat} (100%) rename src/main/resources/assets/computercraft/lua/rom/programs/fun/advanced/levels/{2 => 2.dat} (100%) rename src/main/resources/assets/computercraft/lua/rom/programs/fun/advanced/levels/{3 => 3.dat} (100%) rename src/main/resources/assets/computercraft/lua/rom/programs/fun/advanced/levels/{4 => 4.dat} (100%) rename src/main/resources/assets/computercraft/lua/rom/programs/fun/advanced/levels/{5 => 5.dat} (100%) rename src/main/resources/assets/computercraft/lua/rom/programs/fun/advanced/levels/{6 => 6.dat} (100%) rename src/main/resources/assets/computercraft/lua/rom/programs/fun/advanced/levels/{7 => 7.dat} (100%) rename src/main/resources/assets/computercraft/lua/rom/programs/fun/advanced/levels/{8 => 8.dat} (100%) rename src/main/resources/assets/computercraft/lua/rom/programs/fun/advanced/levels/{9 => 9.dat} (100%) mode change 100755 => 100644 src/main/resources/assets/computercraft/lua/rom/programs/fun/advanced/redirection.lua diff --git a/src/main/resources/assets/computercraft/lua/rom/programs/fun/advanced/levels/0 b/src/main/resources/assets/computercraft/lua/rom/programs/fun/advanced/levels/0.dat similarity index 100% rename from src/main/resources/assets/computercraft/lua/rom/programs/fun/advanced/levels/0 rename to src/main/resources/assets/computercraft/lua/rom/programs/fun/advanced/levels/0.dat diff --git a/src/main/resources/assets/computercraft/lua/rom/programs/fun/advanced/levels/1 b/src/main/resources/assets/computercraft/lua/rom/programs/fun/advanced/levels/1.dat similarity index 100% rename from src/main/resources/assets/computercraft/lua/rom/programs/fun/advanced/levels/1 rename to src/main/resources/assets/computercraft/lua/rom/programs/fun/advanced/levels/1.dat diff --git a/src/main/resources/assets/computercraft/lua/rom/programs/fun/advanced/levels/10 b/src/main/resources/assets/computercraft/lua/rom/programs/fun/advanced/levels/10.dat similarity index 100% rename from src/main/resources/assets/computercraft/lua/rom/programs/fun/advanced/levels/10 rename to src/main/resources/assets/computercraft/lua/rom/programs/fun/advanced/levels/10.dat diff --git a/src/main/resources/assets/computercraft/lua/rom/programs/fun/advanced/levels/11 b/src/main/resources/assets/computercraft/lua/rom/programs/fun/advanced/levels/11.dat similarity index 100% rename from src/main/resources/assets/computercraft/lua/rom/programs/fun/advanced/levels/11 rename to src/main/resources/assets/computercraft/lua/rom/programs/fun/advanced/levels/11.dat diff --git a/src/main/resources/assets/computercraft/lua/rom/programs/fun/advanced/levels/12 b/src/main/resources/assets/computercraft/lua/rom/programs/fun/advanced/levels/12.dat similarity index 100% rename from src/main/resources/assets/computercraft/lua/rom/programs/fun/advanced/levels/12 rename to src/main/resources/assets/computercraft/lua/rom/programs/fun/advanced/levels/12.dat diff --git a/src/main/resources/assets/computercraft/lua/rom/programs/fun/advanced/levels/2 b/src/main/resources/assets/computercraft/lua/rom/programs/fun/advanced/levels/2.dat similarity index 100% rename from src/main/resources/assets/computercraft/lua/rom/programs/fun/advanced/levels/2 rename to src/main/resources/assets/computercraft/lua/rom/programs/fun/advanced/levels/2.dat diff --git a/src/main/resources/assets/computercraft/lua/rom/programs/fun/advanced/levels/3 b/src/main/resources/assets/computercraft/lua/rom/programs/fun/advanced/levels/3.dat similarity index 100% rename from src/main/resources/assets/computercraft/lua/rom/programs/fun/advanced/levels/3 rename to src/main/resources/assets/computercraft/lua/rom/programs/fun/advanced/levels/3.dat diff --git a/src/main/resources/assets/computercraft/lua/rom/programs/fun/advanced/levels/4 b/src/main/resources/assets/computercraft/lua/rom/programs/fun/advanced/levels/4.dat similarity index 100% rename from src/main/resources/assets/computercraft/lua/rom/programs/fun/advanced/levels/4 rename to src/main/resources/assets/computercraft/lua/rom/programs/fun/advanced/levels/4.dat diff --git a/src/main/resources/assets/computercraft/lua/rom/programs/fun/advanced/levels/5 b/src/main/resources/assets/computercraft/lua/rom/programs/fun/advanced/levels/5.dat similarity index 100% rename from src/main/resources/assets/computercraft/lua/rom/programs/fun/advanced/levels/5 rename to src/main/resources/assets/computercraft/lua/rom/programs/fun/advanced/levels/5.dat diff --git a/src/main/resources/assets/computercraft/lua/rom/programs/fun/advanced/levels/6 b/src/main/resources/assets/computercraft/lua/rom/programs/fun/advanced/levels/6.dat similarity index 100% rename from src/main/resources/assets/computercraft/lua/rom/programs/fun/advanced/levels/6 rename to src/main/resources/assets/computercraft/lua/rom/programs/fun/advanced/levels/6.dat diff --git a/src/main/resources/assets/computercraft/lua/rom/programs/fun/advanced/levels/7 b/src/main/resources/assets/computercraft/lua/rom/programs/fun/advanced/levels/7.dat similarity index 100% rename from src/main/resources/assets/computercraft/lua/rom/programs/fun/advanced/levels/7 rename to src/main/resources/assets/computercraft/lua/rom/programs/fun/advanced/levels/7.dat diff --git a/src/main/resources/assets/computercraft/lua/rom/programs/fun/advanced/levels/8 b/src/main/resources/assets/computercraft/lua/rom/programs/fun/advanced/levels/8.dat similarity index 100% rename from src/main/resources/assets/computercraft/lua/rom/programs/fun/advanced/levels/8 rename to src/main/resources/assets/computercraft/lua/rom/programs/fun/advanced/levels/8.dat diff --git a/src/main/resources/assets/computercraft/lua/rom/programs/fun/advanced/levels/9 b/src/main/resources/assets/computercraft/lua/rom/programs/fun/advanced/levels/9.dat similarity index 100% rename from src/main/resources/assets/computercraft/lua/rom/programs/fun/advanced/levels/9 rename to src/main/resources/assets/computercraft/lua/rom/programs/fun/advanced/levels/9.dat diff --git a/src/main/resources/assets/computercraft/lua/rom/programs/fun/advanced/redirection.lua b/src/main/resources/assets/computercraft/lua/rom/programs/fun/advanced/redirection.lua old mode 100755 new mode 100644 index 97b5d90d6..a1b7fd8f7 --- a/src/main/resources/assets/computercraft/lua/rom/programs/fun/advanced/redirection.lua +++ b/src/main/resources/assets/computercraft/lua/rom/programs/fun/advanced/redirection.lua @@ -174,7 +174,7 @@ local function loadLevel(nNum) sLevelTitle = "Level "..nNum if nNum == nil then return error("nNum == nil") end local sDir = fs.getDir( shell.getRunningProgram() ) - local sLevelD = sDir .. "/levels/" .. tostring(nNum) + local sLevelD = sDir .. "/levels/" .. tostring(nNum)..".dat" if not ( fs.exists(sLevelD) or fs.isDir(sLevelD) ) then return error("Level Not Exists : "..sLevelD) end fLevel = fs.open(sLevelD,"r") local Line = 0