diff --git a/platform/msvc2008/audio.vcproj b/platform/msvc2008/audio.vcproj new file mode 100644 index 000000000..f667b70d9 --- /dev/null +++ b/platform/msvc2008/audio.vcproj @@ -0,0 +1,338 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/platform/msvc2008/audio/audio.vcproj b/platform/msvc2008/audio/audio.vcproj deleted file mode 100644 index 421818471..000000000 --- a/platform/msvc2008/audio/audio.vcproj +++ /dev/null @@ -1,423 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/platform/msvc2008/common/common.vcproj b/platform/msvc2008/common.vcproj similarity index 70% rename from platform/msvc2008/common/common.vcproj rename to platform/msvc2008/common.vcproj index 506f39875..f0f212eea 100644 --- a/platform/msvc2008/common/common.vcproj +++ b/platform/msvc2008/common.vcproj @@ -41,7 +41,7 @@ diff --git a/platform/msvc2008/event/event.vcproj b/platform/msvc2008/event.vcproj similarity index 66% rename from platform/msvc2008/event/event.vcproj rename to platform/msvc2008/event.vcproj index fafe117a4..bd8dd32b3 100644 --- a/platform/msvc2008/event/event.vcproj +++ b/platform/msvc2008/event.vcproj @@ -3,7 +3,7 @@ ProjectType="Visual C++" Version="9,00" Name="event" - ProjectGUID="{62C66448-36CB-4350-9D6E-02F49F05EDB4}" + ProjectGUID="{6FAF7CE7-283C-8F9D-C398-045C9CCF16BC}" RootNamespace="event" Keyword="Win32Proj" TargetFrameworkVersion="196613" @@ -41,7 +41,7 @@ - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/platform/msvc2008/filesystem.vcproj b/platform/msvc2008/filesystem.vcproj new file mode 100644 index 000000000..00d951f98 --- /dev/null +++ b/platform/msvc2008/filesystem.vcproj @@ -0,0 +1,248 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/platform/msvc2008/filesystem/filesystem.vcproj b/platform/msvc2008/filesystem/filesystem.vcproj deleted file mode 100644 index c8909b020..000000000 --- a/platform/msvc2008/filesystem/filesystem.vcproj +++ /dev/null @@ -1,231 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/platform/msvc2008/font.vcproj b/platform/msvc2008/font.vcproj new file mode 100644 index 000000000..d1383492f --- /dev/null +++ b/platform/msvc2008/font.vcproj @@ -0,0 +1,266 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/platform/msvc2008/font/font.vcproj b/platform/msvc2008/font/font.vcproj deleted file mode 100644 index 92da2c720..000000000 --- a/platform/msvc2008/font/font.vcproj +++ /dev/null @@ -1,307 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/platform/msvc2008/gen-project.lua b/platform/msvc2008/gen-project.lua new file mode 100644 index 000000000..5e4ae165a --- /dev/null +++ b/platform/msvc2008/gen-project.lua @@ -0,0 +1,262 @@ +-- Generates some MSVC2008 project files. + +require("lfs") + +math.randomseed(os.time()) + +function scan(path) + local files = {} + local dirs = {} + for f in lfs.dir(path) do + if f ~= "." and f ~= ".." then + local a = lfs.attributes(path.."/"..f) + if a and a.mode == "directory" then + table.insert(dirs, f) + else + table.insert(files, f) + end + end + end + return files, dirs +end + +function ignore(path) + + if string.find(path, "libtcc") then + if string.find(path, "libtcc%.c") then + return false + else + print("NO", path) + return true + end + end + + return false +end + +function traverse(path, p, t) + + if not p then p = path end + if not t then t = {} end + + local f, d = scan(path) + + for i,v in ipairs(f) do + if not ignore(path.."/"..v) then + table.insert(t, path.."/"..v) + end + end + + for i,v in ipairs(d) do + t[v] = traverse(path.."/"..v, v, {}) + end + + return t +end + +function winslash(s) + return string.gsub(s, "/", "\\") +end + +function addfolder(name, t, out) + -- Build the data. + for i,v in pairs(t) do + if type(v) == "table" then + table.insert(out, "\n") + addfolder(i, v, out) + table.insert(out, "\n") + else + table.insert(out, "") + if string.find(v, "%.cpp") then + table.insert(out, "") + local u1,u2,obj = string.find(v, "(/modules/.*/)") + table.insert(out, "") + table.insert(out, "") + table.insert(out, "") + table.insert(out, "") + table.insert(out, "") + end + table.insert(out, "") + end + end +end + +function contains(haystack, needle) + for i,v in ipairs(haystack) do + if v == needle then return true end + end + return false +end + +guid = {} +guid.chars = {'0','1','2','3','4','5','6','7','8','9','A','B','C','D','E','F'} + +function guid.gen() + local g = {"{"} + for i=1,8 do table.insert(g, guid.chars[math.random(1,16)]) end + table.insert(g, "-") + for j=1,3 do + for i=1,4 do table.insert(g, guid.chars[math.random(1,16)]) end + table.insert(g, "-") + end + for i=1,12 do table.insert(g, guid.chars[math.random(1,16)]) end + table.insert(g, "}") + return table.concat(g) +end + +filter = {} + +function filter.guid(data) + local g = guid.gen() + print(" GUID: " .. g) + return string.gsub(data, "{GUID}", g) +end + +function filter.name(data, module) + print(" Name: " .. module) + return string.gsub(data, "{MODULE}", module) +end + +function filter.includes(data, module) + + local incstr = "include;../../src;../../src/modules;" + local sdlstr = "include/SDL" + + local sdlmod = {"audio", "event", "graphics", "joystick", "keyboard", "mouse", "timer"} + + if contains(sdlmod, module) then + incstr = incstr .. sdlstr + end + + print(" Include: " .. incstr) + return string.gsub(data, "{INCLUDES}", incstr) +end + +function filter.defines(data, module) + + local unique = string.upper(module) .."_EXPORTS" + local release = "WIN32;NDEBUG;_WINDOWS;_USRDLL;".. unique + local dbg = "WIN32;_DEBUG;_WINDOWS;_USRDLL;".. unique + + print(" Defines:") + print(" Debug: "..dbg) + print(" Release: "..release) + + local data = string.gsub(data, "{DEFINES_RELEASE}", release) + + return string.gsub(data, "{DEFINES_DEBUG}", dbg) +end + +function filter.libdir(data, module) + local dir = "lib" + print(" Libdir: " .. dir) + return string.gsub(data, "{LIBDIR}", dir) +end + +libconf = { + audio = "lua5.1.lib SDL.lib openal32.lib", + event = "lua5.1.lib SDL.lib", + filesystem = "lua5.1.lib physfs.lib", + font = "lua5.1.lib freetype.lib", + graphics = "lua5.1.lib SDL.lib freetype.lib opengl32.lib", + image = "lua5.1.lib DevIL.lib", + joystick = "lua5.1.lib SDL.lib", + keyboard = "lua5.1.lib SDL.lib", + mouse = "lua5.1.lib SDL.lib", + native = "lua5.1.lib", + physics = "lua5.1.lib", + sound = "lua5.1.lib libmodplug.lib libmpg123.lib libogg.lib libvorbis.lib libvorbisfile.lib libFLAC_static.lib libFLAC++_static.lib", + timer = "lua5.1.lib SDL.lib", +} + +function filter.libs(data, module) + print(" Libs: " .. libconf[module]) + return string.gsub(data, "{LIBS}", libconf[module]) +end + +filter.filters = { + filter.name, + filter.guid, + filter.includes, + filter.defines, + filter.libdir, + filter.libs, +} + +function update(module, t) + + print("Updating "..module.." ...") + + local infile = "master.vct" + local outfile = module..".vcproj" + + -- Get the template. + local f = io.open(infile, "r") + if not f then print("Warning, file "..infile.." not found."); return end + local data = f:read("*a") + io.close(f) + + for i,v in ipairs(filter.filters) do + data = v(data, module) + end + + local out = {} + + table.insert(out, "") + table.insert(out, "") + + -- Build the data. + addfolder(module, t.modules[module], out) + + table.insert(out, "") + table.insert(out, "") + + -- Insert into file. + data = string.gsub(data, "{FILES}", table.concat(out, "\n")) + + -- Write the file. + f = io.open(outfile, "w") + f:write(data) + io.close(f) +end + +t = traverse("../../src") + +print("") +print("------------------") +print("") + +function printr(t, tab) + if not tab then tab = 0 end + for i,v in pairs(t) do + if type(v) == "table" then + print(string.rep("\t", tab)..i.." => {") + printr(v, tab+1) + print(string.rep("\t", tab).."}") + else + print(string.rep("\t", tab)..i.." => " .. v) + end + end +end + +--printr(t) + +local mods = { + "audio", + "event", + "filesystem", + "font", + "graphics", + "image", + "joystick", + "keyboard", + "mouse", + "native", + "physics", + "sound", + "timer", +} + +for i,v in ipairs(mods) do + update(v, t) +end diff --git a/platform/msvc2008/graphics.vcproj b/platform/msvc2008/graphics.vcproj new file mode 100644 index 000000000..9438b60cf --- /dev/null +++ b/platform/msvc2008/graphics.vcproj @@ -0,0 +1,354 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/platform/msvc2008/graphics/graphics.vcproj b/platform/msvc2008/graphics/graphics.vcproj deleted file mode 100644 index 06fa520ed..000000000 --- a/platform/msvc2008/graphics/graphics.vcproj +++ /dev/null @@ -1,459 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/platform/msvc2008/image/image.vcproj b/platform/msvc2008/image.vcproj similarity index 52% rename from platform/msvc2008/image/image.vcproj rename to platform/msvc2008/image.vcproj index e47cb3a08..47fad40b1 100644 --- a/platform/msvc2008/image/image.vcproj +++ b/platform/msvc2008/image.vcproj @@ -3,7 +3,7 @@ ProjectType="Visual C++" Version="9,00" Name="image" - ProjectGUID="{55F35AEA-2D84-4A39-BF98-505106A15FF7}" + ProjectGUID="{B4AB1115-4A1B-5A81-626D-9BB2C67ACAA6}" RootNamespace="image" Keyword="Win32Proj" TargetFrameworkVersion="196613" @@ -41,7 +41,7 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/platform/msvc2008/joystick.vcproj b/platform/msvc2008/joystick.vcproj new file mode 100644 index 000000000..093f79cc0 --- /dev/null +++ b/platform/msvc2008/joystick.vcproj @@ -0,0 +1,208 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/platform/msvc2008/keyboard/keyboard.vcproj b/platform/msvc2008/keyboard.vcproj similarity index 65% rename from platform/msvc2008/keyboard/keyboard.vcproj rename to platform/msvc2008/keyboard.vcproj index 8d7531371..ba8391060 100644 --- a/platform/msvc2008/keyboard/keyboard.vcproj +++ b/platform/msvc2008/keyboard.vcproj @@ -3,7 +3,7 @@ ProjectType="Visual C++" Version="9,00" Name="keyboard" - ProjectGUID="{F84CE42B-BBA4-4E32-824B-1F2CAD9236C3}" + ProjectGUID="{D8648013-2A9D-AFEC-760A-DA3D2D6DDD6E}" RootNamespace="keyboard" Keyword="Win32Proj" TargetFrameworkVersion="196613" @@ -41,7 +41,7 @@ - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/platform/msvc2008/love.sln b/platform/msvc2008/love.sln index a0307c097..360ef9b06 100644 --- a/platform/msvc2008/love.sln +++ b/platform/msvc2008/love.sln @@ -1,153 +1,152 @@  Microsoft Visual Studio Solution File, Format Version 10.00 # Visual C++ Express 2008 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "audio", "audio.vcproj", "{BA0FC12D-5ED5-FCFE-DD98-FAE9D85C9FC2}" + ProjectSection(ProjectDependencies) = postProject + {8273822F-45A4-4BE3-82F3-B8B3223C578C} = {8273822F-45A4-4BE3-82F3-B8B3223C578C} + EndProjectSection +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "common", "common.vcproj", "{8273822F-45A4-4BE3-82F3-B8B3223C578C}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "filesystem", "filesystem.vcproj", "{2E82BC23-19FB-068A-EF4A-7C91369FFC8F}" + ProjectSection(ProjectDependencies) = postProject + {8273822F-45A4-4BE3-82F3-B8B3223C578C} = {8273822F-45A4-4BE3-82F3-B8B3223C578C} + EndProjectSection +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "event", "event.vcproj", "{6FAF7CE7-283C-8F9D-C398-045C9CCF16BC}" + ProjectSection(ProjectDependencies) = postProject + {8273822F-45A4-4BE3-82F3-B8B3223C578C} = {8273822F-45A4-4BE3-82F3-B8B3223C578C} + EndProjectSection +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "font", "font.vcproj", "{9C9E90E2-325A-2362-0C6C-C0D36425D65C}" + ProjectSection(ProjectDependencies) = postProject + {8273822F-45A4-4BE3-82F3-B8B3223C578C} = {8273822F-45A4-4BE3-82F3-B8B3223C578C} + {2E82BC23-19FB-068A-EF4A-7C91369FFC8F} = {2E82BC23-19FB-068A-EF4A-7C91369FFC8F} + EndProjectSection +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "image", "image.vcproj", "{B4AB1115-4A1B-5A81-626D-9BB2C67ACAA6}" + ProjectSection(ProjectDependencies) = postProject + {8273822F-45A4-4BE3-82F3-B8B3223C578C} = {8273822F-45A4-4BE3-82F3-B8B3223C578C} + EndProjectSection +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "joystick", "joystick.vcproj", "{B9BC5667-6841-528D-422C-B064849D8620}" + ProjectSection(ProjectDependencies) = postProject + {8273822F-45A4-4BE3-82F3-B8B3223C578C} = {8273822F-45A4-4BE3-82F3-B8B3223C578C} + EndProjectSection +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "keyboard", "keyboard.vcproj", "{D8648013-2A9D-AFEC-760A-DA3D2D6DDD6E}" + ProjectSection(ProjectDependencies) = postProject + {8273822F-45A4-4BE3-82F3-B8B3223C578C} = {8273822F-45A4-4BE3-82F3-B8B3223C578C} + EndProjectSection +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "mouse", "mouse.vcproj", "{B4EC48F6-808C-7CD7-CA18-0A165EC7ED2C}" + ProjectSection(ProjectDependencies) = postProject + {8273822F-45A4-4BE3-82F3-B8B3223C578C} = {8273822F-45A4-4BE3-82F3-B8B3223C578C} + EndProjectSection +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "native", "native.vcproj", "{612C0914-1557-E6DD-6619-362F6026A67F}" + ProjectSection(ProjectDependencies) = postProject + {8273822F-45A4-4BE3-82F3-B8B3223C578C} = {8273822F-45A4-4BE3-82F3-B8B3223C578C} + EndProjectSection +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "physics", "physics.vcproj", "{5CA04389-C0CB-F277-0E5E-3B80F8B63F83}" + ProjectSection(ProjectDependencies) = postProject + {8273822F-45A4-4BE3-82F3-B8B3223C578C} = {8273822F-45A4-4BE3-82F3-B8B3223C578C} + EndProjectSection +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "graphics", "graphics.vcproj", "{9F991E7D-FF31-60DB-466D-6E6A51DB513E}" + ProjectSection(ProjectDependencies) = postProject + {8273822F-45A4-4BE3-82F3-B8B3223C578C} = {8273822F-45A4-4BE3-82F3-B8B3223C578C} + {9C9E90E2-325A-2362-0C6C-C0D36425D65C} = {9C9E90E2-325A-2362-0C6C-C0D36425D65C} + {B4AB1115-4A1B-5A81-626D-9BB2C67ACAA6} = {B4AB1115-4A1B-5A81-626D-9BB2C67ACAA6} + {2E82BC23-19FB-068A-EF4A-7C91369FFC8F} = {2E82BC23-19FB-068A-EF4A-7C91369FFC8F} + EndProjectSection +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "sound", "sound.vcproj", "{61A24CAA-E555-9976-C4F9-E6BB0944419E}" + ProjectSection(ProjectDependencies) = postProject + {8273822F-45A4-4BE3-82F3-B8B3223C578C} = {8273822F-45A4-4BE3-82F3-B8B3223C578C} + {2E82BC23-19FB-068A-EF4A-7C91369FFC8F} = {2E82BC23-19FB-068A-EF4A-7C91369FFC8F} + EndProjectSection +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "timer", "timer.vcproj", "{D6FB3DE4-3542-86A3-F68F-EB29126DCC1D}" + ProjectSection(ProjectDependencies) = postProject + {8273822F-45A4-4BE3-82F3-B8B3223C578C} = {8273822F-45A4-4BE3-82F3-B8B3223C578C} + EndProjectSection +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "lua", "lua.vcproj", "{892D9BD8-F38E-40BC-B4E1-FAEBD59AECDE}" +EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "love", "love.vcproj", "{F2FDC53D-1ECD-4CF1-BA3F-3E59A2484DB9}" EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "common", "common\common.vcproj", "{8273822F-45A4-4BE3-82F3-B8B3223C578C}" -EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "filesystem", "filesystem\filesystem.vcproj", "{0A2BDA60-43BB-4837-921A-2E4955FD8AEC}" - ProjectSection(ProjectDependencies) = postProject - {8273822F-45A4-4BE3-82F3-B8B3223C578C} = {8273822F-45A4-4BE3-82F3-B8B3223C578C} - EndProjectSection -EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "image", "image\image.vcproj", "{55F35AEA-2D84-4A39-BF98-505106A15FF7}" - ProjectSection(ProjectDependencies) = postProject - {8273822F-45A4-4BE3-82F3-B8B3223C578C} = {8273822F-45A4-4BE3-82F3-B8B3223C578C} - {0A2BDA60-43BB-4837-921A-2E4955FD8AEC} = {0A2BDA60-43BB-4837-921A-2E4955FD8AEC} - EndProjectSection -EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "sound", "sound\sound.vcproj", "{3D59D1E2-2682-4317-BB8D-D85E9BBC02E3}" - ProjectSection(ProjectDependencies) = postProject - {8273822F-45A4-4BE3-82F3-B8B3223C578C} = {8273822F-45A4-4BE3-82F3-B8B3223C578C} - {0A2BDA60-43BB-4837-921A-2E4955FD8AEC} = {0A2BDA60-43BB-4837-921A-2E4955FD8AEC} - EndProjectSection -EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "mouse", "mouse\mouse.vcproj", "{88881251-6818-485E-A262-DE1283096589}" - ProjectSection(ProjectDependencies) = postProject - {8273822F-45A4-4BE3-82F3-B8B3223C578C} = {8273822F-45A4-4BE3-82F3-B8B3223C578C} - EndProjectSection -EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "graphics", "graphics\graphics.vcproj", "{8A97E9E7-8C48-4C33-A3ED-31487FE58E9E}" - ProjectSection(ProjectDependencies) = postProject - {8273822F-45A4-4BE3-82F3-B8B3223C578C} = {8273822F-45A4-4BE3-82F3-B8B3223C578C} - {0E3ACF52-EEB5-4E35-8631-43B3E9F4577E} = {0E3ACF52-EEB5-4E35-8631-43B3E9F4577E} - {55F35AEA-2D84-4A39-BF98-505106A15FF7} = {55F35AEA-2D84-4A39-BF98-505106A15FF7} - EndProjectSection -EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "font", "font\font.vcproj", "{0E3ACF52-EEB5-4E35-8631-43B3E9F4577E}" - ProjectSection(ProjectDependencies) = postProject - {8273822F-45A4-4BE3-82F3-B8B3223C578C} = {8273822F-45A4-4BE3-82F3-B8B3223C578C} - {0A2BDA60-43BB-4837-921A-2E4955FD8AEC} = {0A2BDA60-43BB-4837-921A-2E4955FD8AEC} - EndProjectSection -EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "keyboard", "keyboard\keyboard.vcproj", "{F84CE42B-BBA4-4E32-824B-1F2CAD9236C3}" - ProjectSection(ProjectDependencies) = postProject - {8273822F-45A4-4BE3-82F3-B8B3223C578C} = {8273822F-45A4-4BE3-82F3-B8B3223C578C} - EndProjectSection -EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "audio", "audio\audio.vcproj", "{1E405CDD-5FD7-42E0-BCF1-147305DA3EA0}" - ProjectSection(ProjectDependencies) = postProject - {8273822F-45A4-4BE3-82F3-B8B3223C578C} = {8273822F-45A4-4BE3-82F3-B8B3223C578C} - {3D59D1E2-2682-4317-BB8D-D85E9BBC02E3} = {3D59D1E2-2682-4317-BB8D-D85E9BBC02E3} - EndProjectSection -EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "physics", "physics\physics.vcproj", "{39CDF8C8-016D-423E-94BA-7DD798CF0E15}" - ProjectSection(ProjectDependencies) = postProject - {8273822F-45A4-4BE3-82F3-B8B3223C578C} = {8273822F-45A4-4BE3-82F3-B8B3223C578C} - EndProjectSection -EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "event", "event\event.vcproj", "{62C66448-36CB-4350-9D6E-02F49F05EDB4}" - ProjectSection(ProjectDependencies) = postProject - {8273822F-45A4-4BE3-82F3-B8B3223C578C} = {8273822F-45A4-4BE3-82F3-B8B3223C578C} - EndProjectSection -EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "joystick", "joystick\joystick.vcproj", "{C6C174AC-B339-4A39-A353-CFF523327B53}" - ProjectSection(ProjectDependencies) = postProject - {8273822F-45A4-4BE3-82F3-B8B3223C578C} = {8273822F-45A4-4BE3-82F3-B8B3223C578C} - EndProjectSection -EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "timer", "timer\timer.vcproj", "{3DFF2849-C47D-4251-B2AC-E60EDBC29511}" - ProjectSection(ProjectDependencies) = postProject - {8273822F-45A4-4BE3-82F3-B8B3223C578C} = {8273822F-45A4-4BE3-82F3-B8B3223C578C} - EndProjectSection -EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "native", "native\native.vcproj", "{CCAD89EC-2C3C-4F69-BF71-D9DA230FE109}" - ProjectSection(ProjectDependencies) = postProject - {8273822F-45A4-4BE3-82F3-B8B3223C578C} = {8273822F-45A4-4BE3-82F3-B8B3223C578C} - EndProjectSection -EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "lua", "lua\lua.vcproj", "{892D9BD8-F38E-40BC-B4E1-FAEBD59AECDE}" -EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Win32 = Debug|Win32 Release|Win32 = Release|Win32 EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution - {F2FDC53D-1ECD-4CF1-BA3F-3E59A2484DB9}.Debug|Win32.ActiveCfg = Debug|Win32 - {F2FDC53D-1ECD-4CF1-BA3F-3E59A2484DB9}.Debug|Win32.Build.0 = Debug|Win32 - {F2FDC53D-1ECD-4CF1-BA3F-3E59A2484DB9}.Release|Win32.ActiveCfg = Release|Win32 - {F2FDC53D-1ECD-4CF1-BA3F-3E59A2484DB9}.Release|Win32.Build.0 = Release|Win32 + {BA0FC12D-5ED5-FCFE-DD98-FAE9D85C9FC2}.Debug|Win32.ActiveCfg = Debug|Win32 + {BA0FC12D-5ED5-FCFE-DD98-FAE9D85C9FC2}.Debug|Win32.Build.0 = Debug|Win32 + {BA0FC12D-5ED5-FCFE-DD98-FAE9D85C9FC2}.Release|Win32.ActiveCfg = Release|Win32 + {BA0FC12D-5ED5-FCFE-DD98-FAE9D85C9FC2}.Release|Win32.Build.0 = Release|Win32 {8273822F-45A4-4BE3-82F3-B8B3223C578C}.Debug|Win32.ActiveCfg = Debug|Win32 {8273822F-45A4-4BE3-82F3-B8B3223C578C}.Debug|Win32.Build.0 = Debug|Win32 {8273822F-45A4-4BE3-82F3-B8B3223C578C}.Release|Win32.ActiveCfg = Release|Win32 {8273822F-45A4-4BE3-82F3-B8B3223C578C}.Release|Win32.Build.0 = Release|Win32 - {0A2BDA60-43BB-4837-921A-2E4955FD8AEC}.Debug|Win32.ActiveCfg = Debug|Win32 - {0A2BDA60-43BB-4837-921A-2E4955FD8AEC}.Debug|Win32.Build.0 = Debug|Win32 - {0A2BDA60-43BB-4837-921A-2E4955FD8AEC}.Release|Win32.ActiveCfg = Release|Win32 - {0A2BDA60-43BB-4837-921A-2E4955FD8AEC}.Release|Win32.Build.0 = Release|Win32 - {55F35AEA-2D84-4A39-BF98-505106A15FF7}.Debug|Win32.ActiveCfg = Debug|Win32 - {55F35AEA-2D84-4A39-BF98-505106A15FF7}.Debug|Win32.Build.0 = Debug|Win32 - {55F35AEA-2D84-4A39-BF98-505106A15FF7}.Release|Win32.ActiveCfg = Release|Win32 - {55F35AEA-2D84-4A39-BF98-505106A15FF7}.Release|Win32.Build.0 = Release|Win32 - {3D59D1E2-2682-4317-BB8D-D85E9BBC02E3}.Debug|Win32.ActiveCfg = Debug|Win32 - {3D59D1E2-2682-4317-BB8D-D85E9BBC02E3}.Debug|Win32.Build.0 = Debug|Win32 - {3D59D1E2-2682-4317-BB8D-D85E9BBC02E3}.Release|Win32.ActiveCfg = Release|Win32 - {3D59D1E2-2682-4317-BB8D-D85E9BBC02E3}.Release|Win32.Build.0 = Release|Win32 - {88881251-6818-485E-A262-DE1283096589}.Debug|Win32.ActiveCfg = Debug|Win32 - {88881251-6818-485E-A262-DE1283096589}.Debug|Win32.Build.0 = Debug|Win32 - {88881251-6818-485E-A262-DE1283096589}.Release|Win32.ActiveCfg = Release|Win32 - {88881251-6818-485E-A262-DE1283096589}.Release|Win32.Build.0 = Release|Win32 - {8A97E9E7-8C48-4C33-A3ED-31487FE58E9E}.Debug|Win32.ActiveCfg = Debug|Win32 - {8A97E9E7-8C48-4C33-A3ED-31487FE58E9E}.Debug|Win32.Build.0 = Debug|Win32 - {8A97E9E7-8C48-4C33-A3ED-31487FE58E9E}.Release|Win32.ActiveCfg = Release|Win32 - {8A97E9E7-8C48-4C33-A3ED-31487FE58E9E}.Release|Win32.Build.0 = Release|Win32 - {0E3ACF52-EEB5-4E35-8631-43B3E9F4577E}.Debug|Win32.ActiveCfg = Debug|Win32 - {0E3ACF52-EEB5-4E35-8631-43B3E9F4577E}.Debug|Win32.Build.0 = Debug|Win32 - {0E3ACF52-EEB5-4E35-8631-43B3E9F4577E}.Release|Win32.ActiveCfg = Release|Win32 - {0E3ACF52-EEB5-4E35-8631-43B3E9F4577E}.Release|Win32.Build.0 = Release|Win32 - {F84CE42B-BBA4-4E32-824B-1F2CAD9236C3}.Debug|Win32.ActiveCfg = Debug|Win32 - {F84CE42B-BBA4-4E32-824B-1F2CAD9236C3}.Debug|Win32.Build.0 = Debug|Win32 - {F84CE42B-BBA4-4E32-824B-1F2CAD9236C3}.Release|Win32.ActiveCfg = Release|Win32 - {F84CE42B-BBA4-4E32-824B-1F2CAD9236C3}.Release|Win32.Build.0 = Release|Win32 - {1E405CDD-5FD7-42E0-BCF1-147305DA3EA0}.Debug|Win32.ActiveCfg = Debug|Win32 - {1E405CDD-5FD7-42E0-BCF1-147305DA3EA0}.Debug|Win32.Build.0 = Debug|Win32 - {1E405CDD-5FD7-42E0-BCF1-147305DA3EA0}.Release|Win32.ActiveCfg = Release|Win32 - {1E405CDD-5FD7-42E0-BCF1-147305DA3EA0}.Release|Win32.Build.0 = Release|Win32 - {39CDF8C8-016D-423E-94BA-7DD798CF0E15}.Debug|Win32.ActiveCfg = Debug|Win32 - {39CDF8C8-016D-423E-94BA-7DD798CF0E15}.Debug|Win32.Build.0 = Debug|Win32 - {39CDF8C8-016D-423E-94BA-7DD798CF0E15}.Release|Win32.ActiveCfg = Release|Win32 - {39CDF8C8-016D-423E-94BA-7DD798CF0E15}.Release|Win32.Build.0 = Release|Win32 - {62C66448-36CB-4350-9D6E-02F49F05EDB4}.Debug|Win32.ActiveCfg = Debug|Win32 - {62C66448-36CB-4350-9D6E-02F49F05EDB4}.Debug|Win32.Build.0 = Debug|Win32 - {62C66448-36CB-4350-9D6E-02F49F05EDB4}.Release|Win32.ActiveCfg = Release|Win32 - {62C66448-36CB-4350-9D6E-02F49F05EDB4}.Release|Win32.Build.0 = Release|Win32 - {C6C174AC-B339-4A39-A353-CFF523327B53}.Debug|Win32.ActiveCfg = Debug|Win32 - {C6C174AC-B339-4A39-A353-CFF523327B53}.Debug|Win32.Build.0 = Debug|Win32 - {C6C174AC-B339-4A39-A353-CFF523327B53}.Release|Win32.ActiveCfg = Release|Win32 - {C6C174AC-B339-4A39-A353-CFF523327B53}.Release|Win32.Build.0 = Release|Win32 - {3DFF2849-C47D-4251-B2AC-E60EDBC29511}.Debug|Win32.ActiveCfg = Debug|Win32 - {3DFF2849-C47D-4251-B2AC-E60EDBC29511}.Debug|Win32.Build.0 = Debug|Win32 - {3DFF2849-C47D-4251-B2AC-E60EDBC29511}.Release|Win32.ActiveCfg = Release|Win32 - {3DFF2849-C47D-4251-B2AC-E60EDBC29511}.Release|Win32.Build.0 = Release|Win32 - {CCAD89EC-2C3C-4F69-BF71-D9DA230FE109}.Debug|Win32.ActiveCfg = Debug|Win32 - {CCAD89EC-2C3C-4F69-BF71-D9DA230FE109}.Debug|Win32.Build.0 = Debug|Win32 - {CCAD89EC-2C3C-4F69-BF71-D9DA230FE109}.Release|Win32.ActiveCfg = Release|Win32 - {CCAD89EC-2C3C-4F69-BF71-D9DA230FE109}.Release|Win32.Build.0 = Release|Win32 + {2E82BC23-19FB-068A-EF4A-7C91369FFC8F}.Debug|Win32.ActiveCfg = Debug|Win32 + {2E82BC23-19FB-068A-EF4A-7C91369FFC8F}.Debug|Win32.Build.0 = Debug|Win32 + {2E82BC23-19FB-068A-EF4A-7C91369FFC8F}.Release|Win32.ActiveCfg = Release|Win32 + {2E82BC23-19FB-068A-EF4A-7C91369FFC8F}.Release|Win32.Build.0 = Release|Win32 + {6FAF7CE7-283C-8F9D-C398-045C9CCF16BC}.Debug|Win32.ActiveCfg = Debug|Win32 + {6FAF7CE7-283C-8F9D-C398-045C9CCF16BC}.Debug|Win32.Build.0 = Debug|Win32 + {6FAF7CE7-283C-8F9D-C398-045C9CCF16BC}.Release|Win32.ActiveCfg = Release|Win32 + {6FAF7CE7-283C-8F9D-C398-045C9CCF16BC}.Release|Win32.Build.0 = Release|Win32 + {9C9E90E2-325A-2362-0C6C-C0D36425D65C}.Debug|Win32.ActiveCfg = Debug|Win32 + {9C9E90E2-325A-2362-0C6C-C0D36425D65C}.Debug|Win32.Build.0 = Debug|Win32 + {9C9E90E2-325A-2362-0C6C-C0D36425D65C}.Release|Win32.ActiveCfg = Release|Win32 + {9C9E90E2-325A-2362-0C6C-C0D36425D65C}.Release|Win32.Build.0 = Release|Win32 + {B4AB1115-4A1B-5A81-626D-9BB2C67ACAA6}.Debug|Win32.ActiveCfg = Debug|Win32 + {B4AB1115-4A1B-5A81-626D-9BB2C67ACAA6}.Debug|Win32.Build.0 = Debug|Win32 + {B4AB1115-4A1B-5A81-626D-9BB2C67ACAA6}.Release|Win32.ActiveCfg = Release|Win32 + {B4AB1115-4A1B-5A81-626D-9BB2C67ACAA6}.Release|Win32.Build.0 = Release|Win32 + {B9BC5667-6841-528D-422C-B064849D8620}.Debug|Win32.ActiveCfg = Debug|Win32 + {B9BC5667-6841-528D-422C-B064849D8620}.Debug|Win32.Build.0 = Debug|Win32 + {B9BC5667-6841-528D-422C-B064849D8620}.Release|Win32.ActiveCfg = Release|Win32 + {B9BC5667-6841-528D-422C-B064849D8620}.Release|Win32.Build.0 = Release|Win32 + {D8648013-2A9D-AFEC-760A-DA3D2D6DDD6E}.Debug|Win32.ActiveCfg = Debug|Win32 + {D8648013-2A9D-AFEC-760A-DA3D2D6DDD6E}.Debug|Win32.Build.0 = Debug|Win32 + {D8648013-2A9D-AFEC-760A-DA3D2D6DDD6E}.Release|Win32.ActiveCfg = Release|Win32 + {D8648013-2A9D-AFEC-760A-DA3D2D6DDD6E}.Release|Win32.Build.0 = Release|Win32 + {B4EC48F6-808C-7CD7-CA18-0A165EC7ED2C}.Debug|Win32.ActiveCfg = Debug|Win32 + {B4EC48F6-808C-7CD7-CA18-0A165EC7ED2C}.Debug|Win32.Build.0 = Debug|Win32 + {B4EC48F6-808C-7CD7-CA18-0A165EC7ED2C}.Release|Win32.ActiveCfg = Release|Win32 + {B4EC48F6-808C-7CD7-CA18-0A165EC7ED2C}.Release|Win32.Build.0 = Release|Win32 + {612C0914-1557-E6DD-6619-362F6026A67F}.Debug|Win32.ActiveCfg = Debug|Win32 + {612C0914-1557-E6DD-6619-362F6026A67F}.Debug|Win32.Build.0 = Debug|Win32 + {612C0914-1557-E6DD-6619-362F6026A67F}.Release|Win32.ActiveCfg = Release|Win32 + {612C0914-1557-E6DD-6619-362F6026A67F}.Release|Win32.Build.0 = Release|Win32 + {5CA04389-C0CB-F277-0E5E-3B80F8B63F83}.Debug|Win32.ActiveCfg = Debug|Win32 + {5CA04389-C0CB-F277-0E5E-3B80F8B63F83}.Debug|Win32.Build.0 = Debug|Win32 + {5CA04389-C0CB-F277-0E5E-3B80F8B63F83}.Release|Win32.ActiveCfg = Release|Win32 + {5CA04389-C0CB-F277-0E5E-3B80F8B63F83}.Release|Win32.Build.0 = Release|Win32 + {9F991E7D-FF31-60DB-466D-6E6A51DB513E}.Debug|Win32.ActiveCfg = Debug|Win32 + {9F991E7D-FF31-60DB-466D-6E6A51DB513E}.Debug|Win32.Build.0 = Debug|Win32 + {9F991E7D-FF31-60DB-466D-6E6A51DB513E}.Release|Win32.ActiveCfg = Release|Win32 + {9F991E7D-FF31-60DB-466D-6E6A51DB513E}.Release|Win32.Build.0 = Release|Win32 + {61A24CAA-E555-9976-C4F9-E6BB0944419E}.Debug|Win32.ActiveCfg = Debug|Win32 + {61A24CAA-E555-9976-C4F9-E6BB0944419E}.Debug|Win32.Build.0 = Debug|Win32 + {61A24CAA-E555-9976-C4F9-E6BB0944419E}.Release|Win32.ActiveCfg = Release|Win32 + {61A24CAA-E555-9976-C4F9-E6BB0944419E}.Release|Win32.Build.0 = Release|Win32 + {D6FB3DE4-3542-86A3-F68F-EB29126DCC1D}.Debug|Win32.ActiveCfg = Debug|Win32 + {D6FB3DE4-3542-86A3-F68F-EB29126DCC1D}.Debug|Win32.Build.0 = Debug|Win32 + {D6FB3DE4-3542-86A3-F68F-EB29126DCC1D}.Release|Win32.ActiveCfg = Release|Win32 + {D6FB3DE4-3542-86A3-F68F-EB29126DCC1D}.Release|Win32.Build.0 = Release|Win32 {892D9BD8-F38E-40BC-B4E1-FAEBD59AECDE}.Debug|Win32.ActiveCfg = Debug|Win32 {892D9BD8-F38E-40BC-B4E1-FAEBD59AECDE}.Debug|Win32.Build.0 = Debug|Win32 {892D9BD8-F38E-40BC-B4E1-FAEBD59AECDE}.Release|Win32.ActiveCfg = Release|Win32 {892D9BD8-F38E-40BC-B4E1-FAEBD59AECDE}.Release|Win32.Build.0 = Release|Win32 + {F2FDC53D-1ECD-4CF1-BA3F-3E59A2484DB9}.Debug|Win32.ActiveCfg = Debug|Win32 + {F2FDC53D-1ECD-4CF1-BA3F-3E59A2484DB9}.Debug|Win32.Build.0 = Debug|Win32 + {F2FDC53D-1ECD-4CF1-BA3F-3E59A2484DB9}.Release|Win32.ActiveCfg = Release|Win32 + {F2FDC53D-1ECD-4CF1-BA3F-3E59A2484DB9}.Release|Win32.Build.0 = Release|Win32 EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/platform/msvc2008/lua/lua.c b/platform/msvc2008/lua.c similarity index 100% rename from platform/msvc2008/lua/lua.c rename to platform/msvc2008/lua.c diff --git a/platform/msvc2008/lua/lua.vcproj b/platform/msvc2008/lua.vcproj similarity index 92% rename from platform/msvc2008/lua/lua.vcproj rename to platform/msvc2008/lua.vcproj index ddce47384..e4fdfb7ee 100644 --- a/platform/msvc2008/lua/lua.vcproj +++ b/platform/msvc2008/lua.vcproj @@ -41,7 +41,7 @@ @@ -41,8 +41,8 @@ - - - - - - - - - - - - - - - - - - + +{FILES} + diff --git a/platform/msvc2008/mouse/mouse.vcproj b/platform/msvc2008/mouse.vcproj similarity index 66% rename from platform/msvc2008/mouse/mouse.vcproj rename to platform/msvc2008/mouse.vcproj index 9c8400cf5..e5a950ee6 100644 --- a/platform/msvc2008/mouse/mouse.vcproj +++ b/platform/msvc2008/mouse.vcproj @@ -3,7 +3,7 @@ ProjectType="Visual C++" Version="9,00" Name="mouse" - ProjectGUID="{88881251-6818-485E-A262-DE1283096589}" + ProjectGUID="{B4EC48F6-808C-7CD7-CA18-0A165EC7ED2C}" RootNamespace="mouse" Keyword="Win32Proj" TargetFrameworkVersion="196613" @@ -41,7 +41,7 @@ - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/platform/msvc2008/native.vcproj b/platform/msvc2008/native.vcproj new file mode 100644 index 000000000..78ae4e08b --- /dev/null +++ b/platform/msvc2008/native.vcproj @@ -0,0 +1,216 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/platform/msvc2008/native/native.vcproj b/platform/msvc2008/native/native.vcproj deleted file mode 100644 index 4212f0876..000000000 --- a/platform/msvc2008/native/native.vcproj +++ /dev/null @@ -1,244 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/platform/msvc2008/physics.vcproj b/platform/msvc2008/physics.vcproj new file mode 100644 index 000000000..d56ce1c94 --- /dev/null +++ b/platform/msvc2008/physics.vcproj @@ -0,0 +1,826 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/platform/msvc2008/physics/physics.vcproj b/platform/msvc2008/physics/physics.vcproj deleted file mode 100644 index c58841fc2..000000000 --- a/platform/msvc2008/physics/physics.vcproj +++ /dev/null @@ -1,1031 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/platform/msvc2008/sound.vcproj b/platform/msvc2008/sound.vcproj new file mode 100644 index 000000000..5a784fc80 --- /dev/null +++ b/platform/msvc2008/sound.vcproj @@ -0,0 +1,298 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/platform/msvc2008/sound/sound.vcproj b/platform/msvc2008/sound/sound.vcproj deleted file mode 100644 index a0cee06ae..000000000 --- a/platform/msvc2008/sound/sound.vcproj +++ /dev/null @@ -1,359 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/platform/msvc2008/joystick/joystick.vcproj b/platform/msvc2008/timer.vcproj similarity index 63% rename from platform/msvc2008/joystick/joystick.vcproj rename to platform/msvc2008/timer.vcproj index 078f37ab3..a63f63cf0 100644 --- a/platform/msvc2008/joystick/joystick.vcproj +++ b/platform/msvc2008/timer.vcproj @@ -2,9 +2,9 @@ @@ -41,8 +41,8 @@ - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/common/Data.h b/src/common/Data.h index d4bd7eeeb..59a012d20 100644 --- a/src/common/Data.h +++ b/src/common/Data.h @@ -27,23 +27,30 @@ namespace love { + /** + * This class is a simple abstraction over + **/ class Data : public Object { public: + /** + * Destructor. + **/ virtual ~Data() {}; /** - * Gets a pointer to the data. + * Gets a pointer to the data. This pointer will obviously not + * be valid if the Data object is destroyed. **/ virtual void * getData() const = 0 ; /** - * Gets the size of the data buffer. + * Gets the size of the Data in bytes. **/ virtual int getSize() const = 0; }; // Data } // love -#endif // LOVE_DATA_H \ No newline at end of file +#endif // LOVE_DATA_H diff --git a/src/love.cpp b/src/love.cpp index 027b1227e..b0344faca 100644 --- a/src/love.cpp +++ b/src/love.cpp @@ -1,4 +1,12 @@ /** +* @mainpage LOVE +* @section sec-intro Introduction +* +* LOVE is a free 2D game "engine" which allows you to create games in +* Lua primarily, but increasingly in C as well. +* +* @section sec-license License +* * Copyright (c) 2006-2009 LOVE Development Team * * This software is provided 'as-is', without any express or implied @@ -9,13 +17,13 @@ * including commercial applications, and to alter it and redistribute it * freely, subject to the following restrictions: * -* 1. The origin of this software must not be misrepresented; you must not +* -# The origin of this software must not be misrepresented; you must not * claim that you wrote the original software. If you use this software * in a product, an acknowledgment in the product documentation would be * appreciated but is not required. -* 2. Altered source versions must be plainly marked as such, and must not be +* -# Altered source versions must be plainly marked as such, and must not be * misrepresented as being the original software. -* 3. This notice may not be removed or altered from any source distribution. +* -# This notice may not be removed or altered from any source distribution. **/ // SDL @@ -100,17 +108,15 @@ int main(int argc, char ** argv) luaopen_love(L); - // Add command line arguments to love.__args + // Add command line arguments to global arg (like stand-alone Lua). { - lua_getglobal(L, "love"); lua_newtable(L); for(int i = 0;igetL(); - cb->push(); - lua_pushnumber(L, signal); - lua_call(L, 1, 0); - } - - const char * Event::getName() const - { - return "love.event.signal"; - } - -} // signal -} // event -} // love diff --git a/src/modules/event/signal/Event.h b/src/modules/event/signal/Event.h deleted file mode 100644 index 85c48303f..000000000 --- a/src/modules/event/signal/Event.h +++ /dev/null @@ -1,57 +0,0 @@ -/** -* Copyright (c) 2006-2009 LOVE Development Team -* -* This software is provided 'as-is', without any express or implied -* warranty. In no event will the authors be held liable for any damages -* arising from the use of this software. -* -* Permission is granted to anyone to use this software for any purpose, -* including commercial applications, and to alter it and redistribute it -* freely, subject to the following restrictions: -* -* 1. The origin of this software must not be misrepresented; you must not -* claim that you wrote the original software. If you use this software -* in a product, an acknowledgment in the product documentation would be -* appreciated but is not required. -* 2. Altered source versions must be plainly marked as such, and must not be -* misrepresented as being the original software. -* 3. This notice may not be removed or altered from any source distribution. -**/ - -#ifndef LOVE_EVENT_SIGNAL_EVENT_H -#define LOVE_EVENT_SIGNAL_EVENT_H - -// LOVE -#include -#include -#include - -#include - -namespace love -{ -namespace event -{ -namespace signal -{ - class Event : public event::Event - { - private: - int signals; - - public: - Event(); - ~Event(); - bool registerSignal(int sgn); - void setCallback(lua_State *L); - const char * getName() const; - }; - - void handler(int signal); - static Reference *cb; - -} // signal -} // event -} // love - -#endif // LOVE_EVENT_SIGNAL_EVENT_H diff --git a/src/modules/event/signal/wrap_Event.cpp b/src/modules/event/signal/wrap_Event.cpp deleted file mode 100644 index c0fc5fedd..000000000 --- a/src/modules/event/signal/wrap_Event.cpp +++ /dev/null @@ -1,78 +0,0 @@ -/** -* Copyright (c) 2006-2009 LOVE Development Team -* -* This software is provided 'as-is', without any express or implied -* warranty. In no event will the authors be held liable for any damages -* arising from the use of this software. -* -* Permission is granted to anyone to use this software for any purpose, -* including commercial applications, and to alter it and redistribute it -* freely, subject to the following restrictions: -* -* 1. The origin of this software must not be misrepresented; you must not -* claim that you wrote the original software. If you use this software -* in a product, an acknowledgment in the product documentation would be -* appreciated but is not required. -* 2. Altered source versions must be plainly marked as such, and must not be -* misrepresented as being the original software. -* 3. This notice may not be removed or altered from any source distribution. -**/ - -#include "wrap_Event.h" - -// LOVE -#include - -#include "Event.h" - -namespace love -{ -namespace event -{ -namespace signal -{ - static Event * instance = 0; - - int _wrap_registerSignal(lua_State *L) - { - luaL_argcheck(L, lua_isnumber(L, 1), 1, "Expected number"); - lua_pushboolean(L, instance->registerSignal(lua_tonumber(L, 1))); - return 1; - } - - int _wrap_setCallback(lua_State *L) - { - luaL_argcheck(L, lua_isfunction(L, 1), 1, "Expected function"); - instance->setCallback(L); - return 0; - } - - // List of functions to wrap. - static const luaL_Reg wrap_Event_signal_functions[] = { - { "registerSignal", _wrap_registerSignal }, - { "setCallback", _wrap_setCallback }, - { 0, 0 } - }; - - int wrap_Event_signal_open(lua_State * L) - { - if(instance == 0) - { - try - { - instance = new Event(); - } - catch(Exception & e) - { - return luaL_error(L, e.what()); - } - } - - luax_register_gc(L, "love.event.signal", instance); - - return luax_register_module(L, wrap_Event_signal_functions, 0); - } - -} // signal -} // event -} // love diff --git a/src/modules/event/signal/wrap_Event.h b/src/modules/event/signal/wrap_Event.h deleted file mode 100644 index 00d339961..000000000 --- a/src/modules/event/signal/wrap_Event.h +++ /dev/null @@ -1,42 +0,0 @@ -/** -* Copyright (c) 2006-2009 LOVE Development Team -* -* This software is provided 'as-is', without any express or implied -* warranty. In no event will the authors be held liable for any damages -* arising from the use of this software. -* -* Permission is granted to anyone to use this software for any purpose, -* including commercial applications, and to alter it and redistribute it -* freely, subject to the following restrictions: -* -* 1. The origin of this software must not be misrepresented; you must not -* claim that you wrote the original software. If you use this software -* in a product, an acknowledgment in the product documentation would be -* appreciated but is not required. -* 2. Altered source versions must be plainly marked as such, and must not be -* misrepresented as being the original software. -* 3. This notice may not be removed or altered from any source distribution. -**/ - -#ifndef LOVE_EVENT_SIGNAL_WRAP_EVENT_H -#define LOVE_EVENT_SIGNAL_WRAP_EVENT_H - -// LOVE -#include "Event.h" - -namespace love -{ -namespace event -{ -namespace signal -{ - int _wrap_registerSignal(lua_State *L); - int _wrap_setCallback(lua_State *L); - - int wrap_Event_signal_open(lua_State * L); - -} // sdl -} // event -} // love - -#endif // LOVE_EVENT_SIGNAL_WRAP_EVENT_H diff --git a/src/scripts/boot.lua.h b/src/scripts/boot.lua.h index ddb82f7e6..8c5285085 100644 --- a/src/scripts/boot.lua.h +++ b/src/scripts/boot.lua.h @@ -10,246 +10,262 @@ static const unsigned char B1[]={ 116, 32,108,111,118,101, 32,116,104,101,110, 32,108,111,118,101, 32, 61, 32,123, 125, 32,101,110,100, 13, 10, 13, 10, 45, 45, 32, 85,115,101,100, 32,102,111,114, 32,115,101,116,117,112, 58, 13, 10,108,111,118,101, 46,112, 97,116,104, 32, 61, - 32,123,125, 13, 10, 13, 10, 45, 45, 32, 82,101,112,108, 97, 99,101, 32, 97,110, -121, 32, 92, 32,119,105,116,104, 32, 47, 46, 13, 10,102,117,110, 99,116,105,111, -110, 32,108,111,118,101, 46,112, 97,116,104, 46,110,111,114,109, 97,108,115,108, - 97,115,104,101,115, 40,112, 41, 13, 10, 9,114,101,116,117,114,110, 32,115,116, -114,105,110,103, 46,103,115,117, 98, 40,112, 44, 32, 34, 92, 92, 34, 44, 32, 34, - 47, 34, 41, 13, 10,101,110,100, 13, 10, 13, 10, 45, 45, 32, 77, 97,107,101,115, - 32,115,117,114,101, 32,116,104,101,114,101, 32,105,115, 32, 97, 32,115,108, 97, -115,104, 32, 97,116, 32,116,104,101, 32,101,110,100, 13, 10, 45, 45, 32,111,102, - 32, 97, 32,112, 97,116,104, 46, 13, 10,102,117,110, 99,116,105,111,110, 32,108, -111,118,101, 46,112, 97,116,104, 46,101,110,100,115,108, 97,115,104, 40,112, 41, - 13, 10, 9,105,102, 32,115,116,114,105,110,103, 46,115,117, 98, 40,112, 44, 32, -115,116,114,105,110,103, 46,108,101,110, 40,112, 41, 45, 49, 41, 32,126, 61, 32, - 34, 47, 34, 32,116,104,101,110, 13, 10, 9, 9,114,101,116,117,114,110, 32,112, - 32, 46, 46, 32, 34, 47, 34, 13, 10, 9,101,108,115,101, 13, 10, 9, 9,114,101, -116,117,114,110, 32,112, 13, 10, 9,101,110,100, 13, 10,101,110,100, 13, 10, 13, - 10, 45, 45, 32, 67,104,101, 99,107,115, 32,119,104,101,116,104,101,114, 32, 97, - 32,112, 97,116,104, 32,105,115, 32, 97, 98,115,111,108,117,116,101, 32,111,114, - 32,110,111,116, 46, 13, 10,102,117,110, 99,116,105,111,110, 32,108,111,118,101, - 46,112, 97,116,104, 46, 97, 98,115, 40,112, 41, 13, 10, 13, 10, 9,108,111, 99, - 97,108, 32,116,109,112, 32, 61, 32,108,111,118,101, 46,112, 97,116,104, 46,110, -111,114,109, 97,108,115,108, 97,115,104,101,115, 40,112, 41, 13, 10, 13, 10, 9, - 45, 45, 32, 80, 97,116,104, 32,105,115, 32, 97, 98,115,111,108,117,116,101, 32, -105,102, 32,105,116, 32,115,116, 97,114,116,115, 32,119,105,116,104, 32, 97, 32, - 34, 47, 34, 46, 13, 10, 9,105,102, 32,115,116,114,105,110,103, 46,102,105,110, -100, 40,116,109,112, 44, 32, 34, 47, 34, 41, 32, 61, 61, 32, 49, 32,116,104,101, -110, 13, 10, 9, 9,114,101,116,117,114,110, 32,116,114,117,101, 13, 10, 9,101, -110,100, 13, 10, 13, 10, 9, 45, 45, 32, 80, 97,116,104, 32,105,115, 32, 97, 98, -115,111,108,117,116,101, 32,105,102, 32,105,116, 32,115,116, 97,114,116,115, 32, -119,105,116,104, 32, 97, 32, 13, 10, 9, 45, 45, 32,108,101,116,116,101,114, 32, -102,111,108,108,111,119,101,100, 32, 98,121, 32, 97, 32, 99,111,108,111,110, 46, - 13, 10, 9,105,102, 32,115,116,114,105,110,103, 46,102,105,110,100, 40,116,109, -112, 44, 32, 34, 37, 97, 58, 34, 41, 32, 61, 61, 32, 49, 32,116,104,101,110, 13, - 10, 9, 9,114,101,116,117,114,110, 32,116,114,117,101, 13, 10, 9,101,110,100, - 13, 10, 9, 13, 10, 9, 45, 45, 32, 82,101,108, 97,116,105,118,101, 46, 13, 10, - 9,114,101,116,117,114,110, 32,102, 97,108,115,101, 13, 10, 13, 10,101,110,100, - 13, 10, 13, 10, 45, 45, 32, 67,111,110,118,101,114,116,115, 32, 97,110,121, 32, -112, 97,116,104, 32,105,110,116,111, 32, 97, 32,102,117,108,108, 32,112, 97,116, -104, 46, 13, 10,102,117,110, 99,116,105,111,110, 32,108,111,118,101, 46,112, 97, -116,104, 46,103,101,116,102,117,108,108, 40,112, 41, 13, 10, 13, 10, 9,105,102, - 32,108,111,118,101, 46,112, 97,116,104, 46, 97, 98,115, 40,112, 41, 32,116,104, -101,110, 13, 10, 9, 9,114,101,116,117,114,110, 32,108,111,118,101, 46,112, 97, -116,104, 46,110,111,114,109, 97,108,115,108, 97,115,104,101,115, 40,112, 41, 13, - 10, 9,101,110,100, 13, 10, 13, 10, 9,108,111, 99, 97,108, 32, 99,119,100, 32, - 61, 32,108,111,118,101, 46,102,105,108,101,115,121,115,116,101,109, 46,103,101, -116, 87,111,114,107,105,110,103, 68,105,114,101, 99,116,111,114,121, 40, 41, 13, - 10, 9, 99,119,100, 32, 61, 32,108,111,118,101, 46,112, 97,116,104, 46,110,111, -114,109, 97,108,115,108, 97,115,104,101,115, 40, 99,119,100, 41, 13, 10, 9, 99, -119,100, 32, 61, 32,108,111,118,101, 46,112, 97,116,104, 46,101,110,100,115,108, - 97,115,104, 40, 99,119,100, 41, 13, 10, 9, 13, 10, 9, 45, 45, 32, 67,111,110, -115,116,114,117, 99,116, 32, 97, 32,102,117,108,108, 32,112, 97,116,104, 46, 13, - 10, 9,114,101,116,117,114,110, 32, 99,119,100, 32, 46, 46, 32,108,111,118,101, - 46,112, 97,116,104, 46,110,111,114,109, 97,108,115,108, 97,115,104,101,115, 40, -112, 41, 13, 10, 13, 10,101,110,100, 13, 10, 13, 10, 45, 45, 32, 82,101,116,117, -114,110,115, 32,116,104,101, 32,108,101, 97,102, 32,111,102, 32, 97, 32,102,117, -108,108, 32,112, 97,116,104, 46, 13, 10,102,117,110, 99,116,105,111,110, 32,108, -111,118,101, 46,112, 97,116,104, 46,108,101, 97,102, 40,112, 41, 13, 10, 13, 10, -101,110,100, 13, 10, 13, 10, 45, 45, 32, 83,116, 97,110,100, 97,114,100, 32, 99, - 97,108,108, 98, 97, 99,107, 32,104, 97,110,100,108,101,114,115, 46, 13, 10,108, -111,118,101, 46,104, 97,110,100,108,101,114,115, 32, 61, 32,123, 13, 10, 9, 91, -108,111,118,101, 46,101,118,101,110,116, 95,107,101,121,112,114,101,115,115,101, -100, 93, 32, 61, 32,102,117,110, 99,116,105,111,110, 32, 40, 98, 44, 32,117, 41, - 13, 10, 9, 9,105,102, 32,108,111,118,101, 46,107,101,121,112,114,101,115,115, -101,100, 32,116,104,101,110, 32,108,111,118,101, 46,107,101,121,112,114,101,115, -115,101,100, 40, 98, 44, 32,117, 41, 32,101,110,100, 13, 10, 9,101,110,100, 44, - 13, 10, 9, 91,108,111,118,101, 46,101,118,101,110,116, 95,107,101,121,114,101, -108,101, 97,115,101,100, 93, 32, 61, 32,102,117,110, 99,116,105,111,110, 32, 40, - 98, 41, 13, 10, 9, 9,105,102, 32,108,111,118,101, 46,107,101,121,114,101,108, -101, 97,115,101,100, 32,116,104,101,110, 32,108,111,118,101, 46,107,101,121,114, -101,108,101, 97,115,101,100, 40, 98, 41, 32,101,110,100, 13, 10, 9,101,110,100, - 44, 13, 10, 9, 91,108,111,118,101, 46,101,118,101,110,116, 95,109,111,117,115, -101,112,114,101,115,115,101,100, 93, 32, 61, 32,102,117,110, 99,116,105,111,110, - 32, 40,120, 44,121, 44, 98, 41, 13, 10, 9, 9,105,102, 32,108,111,118,101, 46, -109,111,117,115,101,112,114,101,115,115,101,100, 32,116,104,101,110, 32,108,111, -118,101, 46,109,111,117,115,101,112,114,101,115,115,101,100, 40,120, 44,121, 44, - 98, 41, 32,101,110,100, 13, 10, 9,101,110,100, 44, 13, 10, 9, 91,108,111,118, -101, 46,101,118,101,110,116, 95,109,111,117,115,101,114,101,108,101, 97,115,101, + 32,123,125, 13, 10,108,111,118,101, 46, 97,114,103, 32, 61, 32,123,125, 13, 10, + 13, 10, 45, 45, 32, 82,101,112,108, 97, 99,101, 32, 97,110,121, 32, 92, 32,119, +105,116,104, 32, 47, 46, 13, 10,102,117,110, 99,116,105,111,110, 32,108,111,118, +101, 46,112, 97,116,104, 46,110,111,114,109, 97,108,115,108, 97,115,104,101,115, + 40,112, 41, 13, 10, 9,114,101,116,117,114,110, 32,115,116,114,105,110,103, 46, +103,115,117, 98, 40,112, 44, 32, 34, 92, 92, 34, 44, 32, 34, 47, 34, 41, 13, 10, +101,110,100, 13, 10, 13, 10, 45, 45, 32, 77, 97,107,101,115, 32,115,117,114,101, + 32,116,104,101,114,101, 32,105,115, 32, 97, 32,115,108, 97,115,104, 32, 97,116, + 32,116,104,101, 32,101,110,100, 13, 10, 45, 45, 32,111,102, 32, 97, 32,112, 97, +116,104, 46, 13, 10,102,117,110, 99,116,105,111,110, 32,108,111,118,101, 46,112, + 97,116,104, 46,101,110,100,115,108, 97,115,104, 40,112, 41, 13, 10, 9,105,102, + 32,115,116,114,105,110,103, 46,115,117, 98, 40,112, 44, 32,115,116,114,105,110, +103, 46,108,101,110, 40,112, 41, 45, 49, 41, 32,126, 61, 32, 34, 47, 34, 32,116, +104,101,110, 13, 10, 9, 9,114,101,116,117,114,110, 32,112, 32, 46, 46, 32, 34, + 47, 34, 13, 10, 9,101,108,115,101, 13, 10, 9, 9,114,101,116,117,114,110, 32, +112, 13, 10, 9,101,110,100, 13, 10,101,110,100, 13, 10, 13, 10, 45, 45, 32, 67, +104,101, 99,107,115, 32,119,104,101,116,104,101,114, 32, 97, 32,112, 97,116,104, + 32,105,115, 32, 97, 98,115,111,108,117,116,101, 32,111,114, 32,110,111,116, 46, + 13, 10,102,117,110, 99,116,105,111,110, 32,108,111,118,101, 46,112, 97,116,104, + 46, 97, 98,115, 40,112, 41, 13, 10, 13, 10, 9,108,111, 99, 97,108, 32,116,109, +112, 32, 61, 32,108,111,118,101, 46,112, 97,116,104, 46,110,111,114,109, 97,108, +115,108, 97,115,104,101,115, 40,112, 41, 13, 10, 13, 10, 9, 45, 45, 32, 80, 97, +116,104, 32,105,115, 32, 97, 98,115,111,108,117,116,101, 32,105,102, 32,105,116, + 32,115,116, 97,114,116,115, 32,119,105,116,104, 32, 97, 32, 34, 47, 34, 46, 13, + 10, 9,105,102, 32,115,116,114,105,110,103, 46,102,105,110,100, 40,116,109,112, + 44, 32, 34, 47, 34, 41, 32, 61, 61, 32, 49, 32,116,104,101,110, 13, 10, 9, 9, +114,101,116,117,114,110, 32,116,114,117,101, 13, 10, 9,101,110,100, 13, 10, 13, + 10, 9, 45, 45, 32, 80, 97,116,104, 32,105,115, 32, 97, 98,115,111,108,117,116, +101, 32,105,102, 32,105,116, 32,115,116, 97,114,116,115, 32,119,105,116,104, 32, + 97, 32, 13, 10, 9, 45, 45, 32,108,101,116,116,101,114, 32,102,111,108,108,111, +119,101,100, 32, 98,121, 32, 97, 32, 99,111,108,111,110, 46, 13, 10, 9,105,102, + 32,115,116,114,105,110,103, 46,102,105,110,100, 40,116,109,112, 44, 32, 34, 37, + 97, 58, 34, 41, 32, 61, 61, 32, 49, 32,116,104,101,110, 13, 10, 9, 9,114,101, +116,117,114,110, 32,116,114,117,101, 13, 10, 9,101,110,100, 13, 10, 9, 13, 10, + 9, 45, 45, 32, 82,101,108, 97,116,105,118,101, 46, 13, 10, 9,114,101,116,117, +114,110, 32,102, 97,108,115,101, 13, 10, 13, 10,101,110,100, 13, 10, 13, 10, 45, + 45, 32, 67,111,110,118,101,114,116,115, 32, 97,110,121, 32,112, 97,116,104, 32, +105,110,116,111, 32, 97, 32,102,117,108,108, 32,112, 97,116,104, 46, 13, 10,102, +117,110, 99,116,105,111,110, 32,108,111,118,101, 46,112, 97,116,104, 46,103,101, +116,102,117,108,108, 40,112, 41, 13, 10, 13, 10, 9,105,102, 32,108,111,118,101, + 46,112, 97,116,104, 46, 97, 98,115, 40,112, 41, 32,116,104,101,110, 13, 10, 9, + 9,114,101,116,117,114,110, 32,108,111,118,101, 46,112, 97,116,104, 46,110,111, +114,109, 97,108,115,108, 97,115,104,101,115, 40,112, 41, 13, 10, 9,101,110,100, + 13, 10, 13, 10, 9,108,111, 99, 97,108, 32, 99,119,100, 32, 61, 32,108,111,118, +101, 46,102,105,108,101,115,121,115,116,101,109, 46,103,101,116, 87,111,114,107, +105,110,103, 68,105,114,101, 99,116,111,114,121, 40, 41, 13, 10, 9, 99,119,100, + 32, 61, 32,108,111,118,101, 46,112, 97,116,104, 46,110,111,114,109, 97,108,115, +108, 97,115,104,101,115, 40, 99,119,100, 41, 13, 10, 9, 99,119,100, 32, 61, 32, +108,111,118,101, 46,112, 97,116,104, 46,101,110,100,115,108, 97,115,104, 40, 99, +119,100, 41, 13, 10, 9, 13, 10, 9, 45, 45, 32, 67,111,110,115,116,114,117, 99, +116, 32, 97, 32,102,117,108,108, 32,112, 97,116,104, 46, 13, 10, 9,114,101,116, +117,114,110, 32, 99,119,100, 32, 46, 46, 32,108,111,118,101, 46,112, 97,116,104, + 46,110,111,114,109, 97,108,115,108, 97,115,104,101,115, 40,112, 41, 13, 10, 13, + 10,101,110,100, 13, 10, 13, 10, 45, 45, 32, 82,101,116,117,114,110,115, 32,116, +104,101, 32,108,101, 97,102, 32,111,102, 32, 97, 32,102,117,108,108, 32,112, 97, +116,104, 46, 13, 10,102,117,110, 99,116,105,111,110, 32,108,111,118,101, 46,112, + 97,116,104, 46,108,101, 97,102, 40,112, 41, 13, 10, 13, 10,101,110,100, 13, 10, + 13, 10, 45, 45, 32, 70,105,110,100,115, 32,116,104,101, 32,107,101,121, 32,105, +110, 32,116,104,101, 32,116, 97, 98,108,101, 32,119,105,116,104, 32,116,104,101, + 32,108,111,119,101,115,116, 32,105,110,116,101,103,114, 97,108, 32,105,110,100, +101,120, 46, 32, 84,104,101, 32,108,111,119,101,115,116, 32, 13, 10, 45, 45, 32, +119,105,108,108, 32,116,121,112,105, 99, 97,108,108,121, 32,116,104,101, 32,101, +120,101, 99,117,116, 97, 98,108,101, 44, 32,102,111,114, 32,105,110,115,116, 97, +110, 99,101, 32, 34,108,117, 97, 53, 46, 49, 46,101,120,101, 34, 46, 13, 10,102, +117,110, 99,116,105,111,110, 32,108,111,118,101, 46, 97,114,103, 46,103,101,116, + 76,111,119, 40, 97, 41, 13, 10, 9,108,111, 99, 97,108, 32,109, 32, 61, 32,109, + 97,116,104, 46,104,117,103,101, 13, 10, 9,102,111,114, 32,107, 44,118, 32,105, +110, 32,112, 97,105,114,115, 40, 97, 41, 32,100,111, 13, 10, 9, 9,105,102, 32, +107, 32, 60, 32,109, 32,116,104,101,110, 32, 13, 10, 9, 9, 9,109, 32, 61, 32, +107, 13, 10, 9, 9,101,110,100, 13, 10, 9,101,110,100, 13, 10, 9,114,101,116, +117,114,110, 32, 97, 91,109, 93, 13, 10,101,110,100, 13, 10, 13, 10,102,117,110, + 99,116,105,111,110, 32,108,111,118,101, 46, 99,114,101, 97,116,101,104, 97,110, +100,108,101,114,115, 40, 41, 13, 10, 13, 10, 9, 45, 45, 32, 83,116, 97,110,100, + 97,114,100, 32, 99, 97,108,108, 98, 97, 99,107, 32,104, 97,110,100,108,101,114, +115, 46, 13, 10, 9,108,111,118,101, 46,104, 97,110,100,108,101,114,115, 32, 61, + 32,123, 13, 10, 9, 9, 91,108,111,118,101, 46,101,118,101,110,116, 95,107,101, +121,112,114,101,115,115,101,100, 93, 32, 61, 32,102,117,110, 99,116,105,111,110, + 32, 40, 98, 44, 32,117, 41, 13, 10, 9, 9, 9,105,102, 32,108,111,118,101, 46, +107,101,121,112,114,101,115,115,101,100, 32,116,104,101,110, 32,108,111,118,101, + 46,107,101,121,112,114,101,115,115,101,100, 40, 98, 44, 32,117, 41, 32,101,110, +100, 13, 10, 9, 9,101,110,100, 44, 13, 10, 9, 9, 91,108,111,118,101, 46,101, +118,101,110,116, 95,107,101,121,114,101,108,101, 97,115,101,100, 93, 32, 61, 32, +102,117,110, 99,116,105,111,110, 32, 40, 98, 41, 13, 10, 9, 9, 9,105,102, 32, +108,111,118,101, 46,107,101,121,114,101,108,101, 97,115,101,100, 32,116,104,101, +110, 32,108,111,118,101, 46,107,101,121,114,101,108,101, 97,115,101,100, 40, 98, + 41, 32,101,110,100, 13, 10, 9, 9,101,110,100, 44, 13, 10, 9, 9, 91,108,111, +118,101, 46,101,118,101,110,116, 95,109,111,117,115,101,112,114,101,115,115,101, 100, 93, 32, 61, 32,102,117,110, 99,116,105,111,110, 32, 40,120, 44,121, 44, 98, - 41, 13, 10, 9, 9,105,102, 32,108,111,118,101, 46,109,111,117,115,101,114,101, -108,101, 97,115,101,100, 32,116,104,101,110, 32,108,111,118,101, 46,109,111,117, -115,101,114,101,108,101, 97,115,101,100, 40,120, 44,121, 44, 98, 41, 32,101,110, -100, 13, 10, 9,101,110,100, 44, 13, 10, 9, 91,108,111,118,101, 46,101,118,101, -110,116, 95,106,111,121,115,116,105, 99,107,112,114,101,115,115,101,100, 93, 32, - 61, 32,102,117,110, 99,116,105,111,110, 32, 40,106, 44, 98, 41, 13, 10, 9, 9, + 41, 13, 10, 9, 9, 9,105,102, 32,108,111,118,101, 46,109,111,117,115,101,112, +114,101,115,115,101,100, 32,116,104,101,110, 32,108,111,118,101, 46,109,111,117, +115,101,112,114,101,115,115,101,100, 40,120, 44,121, 44, 98, 41, 32,101,110,100, + 13, 10, 9, 9,101,110,100, 44, 13, 10, 9, 9, 91,108,111,118,101, 46,101,118, +101,110,116, 95,109,111,117,115,101,114,101,108,101, 97,115,101,100, 93, 32, 61, + 32,102,117,110, 99,116,105,111,110, 32, 40,120, 44,121, 44, 98, 41, 13, 10, 9, + 9, 9,105,102, 32,108,111,118,101, 46,109,111,117,115,101,114,101,108,101, 97, +115,101,100, 32,116,104,101,110, 32,108,111,118,101, 46,109,111,117,115,101,114, +101,108,101, 97,115,101,100, 40,120, 44,121, 44, 98, 41, 32,101,110,100, 13, 10, + 9, 9,101,110,100, 44, 13, 10, 9, 9, 91,108,111,118,101, 46,101,118,101,110, +116, 95,106,111,121,115,116,105, 99,107,112,114,101,115,115,101,100, 93, 32, 61, + 32,102,117,110, 99,116,105,111,110, 32, 40,106, 44, 98, 41, 13, 10, 9, 9, 9, 105,102, 32,108,111,118,101, 46,106,111,121,115,116,105, 99,107,112,114,101,115, 115,101,100, 32,116,104,101,110, 32,108,111,118,101, 46,106,111,121,115,116,105, 99,107,112,114,101,115,115,101,100, 40,106, 44, 98, 41, 32,101,110,100, 13, 10, - 9,101,110,100, 44, 13, 10, 9, 91,108,111,118,101, 46,101,118,101,110,116, 95, -106,111,121,115,116,105, 99,107,114,101,108,101, 97,115,101,100, 93, 32, 61, 32, -102,117,110, 99,116,105,111,110, 32, 40,106, 44, 98, 41, 13, 10, 9, 9,105,102, - 32,108,111,118,101, 46,106,111,121,115,116,105, 99,107,114,101,108,101, 97,115, -101,100, 32,116,104,101,110, 32,108,111,118,101, 46,106,111,121,115,116,105, 99, -107,114,101,108,101, 97,115,101,100, 40,106, 44, 98, 41, 32,101,110,100, 13, 10, - 9,101,110,100, 44, 13, 10, 9, 91,108,111,118,101, 46,101,118,101,110,116, 95, -113,117,105,116, 93, 32, 61, 32,102,117,110, 99,116,105,111,110, 32, 40, 41, 13, - 10, 9, 9,114,101,116,117,114,110, 13, 10, 9,101,110,100, 44, 13, 10,125, 13, - 10, 13, 10, 45, 45, 32, 84,104,105,115, 32, 99, 97,110, 39,116, 32, 98,101, 32, -111,118,101,114,114,105,100,101,110, 46, 32, 13, 10,102,117,110, 99,116,105,111, -110, 32,108,111,118,101, 46, 98,111,111,116, 40, 41, 13, 10, 13, 10, 9,112,114, -105,110,116, 40, 34, 98,111,111,116, 34, 41, 13, 10, 13, 10, 9, 45, 45, 32, 84, -104,105,115, 32,105,115, 32, 97, 98,115,111,108,117,116,101,108,121, 32,110,101, -101,100,101,100, 46, 32, 13, 10, 9,114,101,113,117,105,114,101, 40, 34,108,111, -118,101, 46,102,105,108,101,115,121,115,116,101,109, 34, 41, 13, 10, 13, 10, 9, - 45, 45, 32, 80,114,105,110,116,115, 32,116,104,101, 32, 97,114,103,117,109,101, -110,116,115, 32,112, 97,115,115,101,115, 32,116,111, 32,116,104,101, 32, 97,112, -112, 46, 13, 10, 9,105,102, 32,108,111,118,101, 46, 95, 95, 97,114,103,115, 32, -116,104,101,110, 13, 10, 9, 9,102,111,114, 32,105, 44,118, 32,105,110, 32,112, - 97,105,114,115, 40,108,111,118,101, 46, 95, 95, 97,114,103,115, 41, 32,100,111, - 13, 10, 9, 9, 9,112,114,105,110,116, 40,105, 44,118, 41, 13, 10, 9, 9,101, -110,100, 13, 10, 9,101,110,100, 9, 13, 10, 9, 13, 10, 9, 45, 45, 32, 83,101, -116,115, 32,116,104,101, 32,115,111,117,114, 99,101, 32,102,111,114, 32,116,104, -101, 32,103, 97,109,101, 46, 13, 10, 9,105,102, 32,108,111,118,101, 46, 95, 95, - 97,114,103,115, 91, 49, 93, 32, 97,110,100, 32,108,111,118,101, 46, 95, 95, 97, -114,103,115, 91, 49, 93, 32,126, 61, 32, 34, 34, 32,116,104,101,110, 13, 10, 9, - 9,108,111,118,101, 46,102,105,108,101,115,121,115,116,101,109, 46,115,101,116, - 83,111,117,114, 99,101, 40,108,111,118,101, 46,112, 97,116,104, 46,103,101,116, -102,117,108,108, 40,108,111,118,101, 46, 95, 95, 97,114,103,115, 91, 49, 93, 41, - 41, 13, 10, 9,101,110,100, 13, 10, 9, 13, 10,101,110,100, 13, 10, 13, 10,102, -117,110, 99,116,105,111,110, 32,108,111,118,101, 46,105,110,105,116, 40, 41, 13, - 10, 13, 10, 9, 45, 45, 32, 67,114,101, 97,116,101, 32,100,101,102, 97,117,108, -116, 32, 99,111,110,102,105,103,117,114, 97,116,105,111,110, 32,115,101,116,116, -105,110,103,115, 46, 13, 10, 9,108,111, 99, 97,108, 32, 99, 32, 61, 32,123, 13, - 10, 9, 9,116,105,116,108,101, 32, 61, 32, 34, 85,110,116,105,116,108,101,100, - 34, 44, 13, 10, 9, 9, 97,117,116,104,111,114, 32, 61, 32, 34, 85,110,110, 97, -109,101,100, 34, 44, 13, 10, 9, 9,118,101,114,115,105,111,110, 32, 61, 32, 48, - 44, 13, 10, 9, 9,115, 99,114,101,101,110, 32, 61, 32,123, 13, 10, 9, 9, 9, -119,105,100,116,104, 32, 61, 32, 56, 48, 48, 44, 13, 10, 9, 9, 9,104,101,105, -103,104,116, 32, 61, 32, 54, 48, 48, 44, 13, 10, 9, 9, 9,102,117,108,108,115, - 99,114,101,101,110, 32, 61, 32,102, 97,108,115,101, 44, 13, 10, 9, 9, 9,118, -115,121,110, 99, 32, 61, 32,116,114,117,101, 44, 13, 10, 9, 9, 9,102,115, 97, - 97, 32, 61, 32, 48, 44, 13, 10, 9, 9,125, 44, 32, 13, 10, 9, 9,109,111,100, -117,108,101,115, 32, 61, 32,123, 13, 10, 9, 9, 9,101,118,101,110,116, 32, 61, - 32,116,114,117,101, 44, 13, 10, 9, 9, 9,107,101,121, 98,111, 97,114,100, 32, - 61, 32,116,114,117,101, 44, 13, 10, 9, 9, 9,109,111,117,115,101, 32, 61, 32, -116,114,117,101, 44, 13, 10, 9, 9, 9,116,105,109,101,114, 32, 61, 32,116,114, -117,101, 44, 13, 10, 9, 9, 9,106,111,121,115,116,105, 99,107, 32, 61, 32,116, -114,117,101, 44, 13, 10, 9, 9, 9,105,109, 97,103,101, 32, 61, 32,116,114,117, -101, 44, 13, 10, 9, 9, 9,103,114, 97,112,104,105, 99,115, 32, 61, 32,116,114, -117,101, 44, 13, 10, 9, 9, 9, 97,117,100,105,111, 32, 61, 32,116,114,117,101, - 44, 13, 10, 9, 9, 9,112,104,121,115,105, 99,115, 32, 61, 32,116,114,117,101, - 44, 13, 10, 9, 9, 9,115,111,117,110,100, 32, 61, 32,116,114,117,101, 44, 13, - 10, 9, 9, 9,110, 97,116,105,118,101, 32, 61, 32,116,114,117,101, 44, 13, 10, - 9, 9, 9,102,111,110,116, 32, 61, 32,116,114,117,101, 44, 13, 10, 9, 9,125, - 44, 13, 10, 9,125, 13, 10, 13, 10, 9, 45, 45, 32, 73,102, 32, 99,111,110,102, -105,103, 32,102,105,108,101, 32,101,120,105,115,116,115, 44, 32,108,111, 97,100, - 32,105,116, 32, 97,110,100, 32, 97,108,108,111,119, 32,105,116, 32,116,111, 32, -117,112,100, 97,116,101, 32, 99,111,110,102,105,103, 32,116, 97, 98,108,101, 46, - 13, 10, 9,105,102, 32,108,111,118,101, 46,102,105,108,101,115,121,115,116,101, -109, 46,101,120,105,115,116,115, 40, 34, 99,111,110,102, 46,108,117, 97, 34, 41, - 32,116,104,101,110, 13, 10, 9, 9,114,101,113,117,105,114,101, 40, 34, 99,111, -110,102, 46,108,117, 97, 34, 41, 13, 10, 9, 9,108,111,118,101, 46, 99,111,110, -102, 40, 99, 41, 13, 10, 9,101,110,100, 13, 10, 9, 13, 10, 9, 45, 45, 32, 71, -101,116,115, 32,100,101,115,105,114,101,100, 32,109,111,100,117,108,101,115, 46, - 13, 10, 9,102,111,114, 32,107, 44,118, 32,105,110, 32,112, 97,105,114,115, 40, - 99, 46,109,111,100,117,108,101,115, 41, 32,100,111, 13, 10, 9, 9,105,102, 32, -118, 32,116,104,101,110, 13, 10, 9, 9, 9,114,101,113,117,105,114,101, 40, 34, -108,111,118,101, 46, 34, 32, 46, 46, 32,107, 41, 13, 10, 9, 9,101,110,100, 13, - 10, 9,101,110,100, 13, 10, 9, 13, 10, 9, 13, 10, 9, 45, 45, 32, 83,101,116, -117,112, 32,115, 99,114,101,101,110, 32,104,101,114,101, 46, 13, 10, 9,105,102, - 32, 99, 46,115, 99,114,101,101,110, 32, 97,110,100, 32, 99, 46,109,111,100,117, -108,101,115, 46,103,114, 97,112,104,105, 99,115, 32,116,104,101,110, 32, 13, 10, - 9, 9,105,102, 32,108,111,118,101, 46,103,114, 97,112,104,105, 99,115, 46, 99, -104,101, 99,107, 77,111,100,101, 40, 99, 46,115, 99,114,101,101,110, 46,119,105, -100,116,104, 44, 32, 99, 46,115, 99,114,101,101,110, 46,104,101,105,103,104,116, - 44, 32, 99, 46,115, 99,114,101,101,110, 46,102,117,108,108,115, 99,114,101,101, -110, 41, 32,116,104,101,110, 13, 10, 9, 9, 9,108,111,118,101, 46,103,114, 97, -112,104,105, 99,115, 46,115,101,116, 77,111,100,101, 40, 99, 46,115, 99,114,101, -101,110, 46,119,105,100,116,104, 44, 32, 99, 46,115, 99,114,101,101,110, 46,104, -101,105,103,104,116, 44, 32, 99, 46,115, 99,114,101,101,110, 46,102,117,108,108, -115, 99,114,101,101,110, 44, 32, 99, 46,115, 99,114,101,101,110, 46,118,115,121, -110, 99, 44, 32, 99, 46,115, 99,114,101,101,110, 46,102,115, 97, 97, 41, 13, 10, - 9, 9,101,110,100, 13, 10, 9, 9,108,111,118,101, 46,103,114, 97,112,104,105, - 99,115, 46,115,101,116, 67, 97,112,116,105,111,110, 40, 99, 46,116,105,116,108, -101, 41, 13, 10, 9,101,110,100, 13, 10, 9, 13, 10, 9,105,102, 32,108,111,118, -101, 46,102,105,108,101,115,121,115,116,101,109, 46,101,120,105,115,116,115, 40, - 34,109, 97,105,110, 46,108,117, 97, 34, 41, 32,116,104,101,110, 32,114,101,113, -117,105,114,101, 40, 34,109, 97,105,110, 46,108,117, 97, 34, 41, 32,101,110,100, - 13, 10, 9, 13, 10,101,110,100, 13, 10, 13, 10,102,117,110, 99,116,105,111,110, - 32,108,111,118,101, 46,114,117,110, 40, 41, 13, 10, 13, 10, 9,105,102, 32,108, -111,118,101, 46,108,111, 97,100, 32,116,104,101,110, 32,108,111,118,101, 46,108, -111, 97,100, 40, 41, 32,101,110,100, 13, 10, 13, 10, 9, 45, 45, 32, 77, 97,105, -110, 32,108,111,111,112, 32,116,105,109,101, 46, 13, 10, 9,119,104,105,108,101, - 32,116,114,117,101, 32,100,111, 13, 10, 9, 9,108,111,118,101, 46,116,105,109, -101,114, 46,115,116,101,112, 40, 41, 13, 10, 9, 9,105,102, 32,108,111,118,101, - 46,117,112,100, 97,116,101, 32,116,104,101,110, 32,108,111,118,101, 46,117,112, -100, 97,116,101, 40,108,111,118,101, 46,116,105,109,101,114, 46,103,101,116, 68, -101,108,116, 97, 40, 41, 41, 32,101,110,100, 13, 10, 9, 9,108,111,118,101, 46, -103,114, 97,112,104,105, 99,115, 46, 99,108,101, 97,114, 40, 41, 13, 10, 9, 9, -105,102, 32,108,111,118,101, 46,100,114, 97,119, 32,116,104,101,110, 32,108,111, -118,101, 46,100,114, 97,119, 40, 41, 32,101,110,100, 13, 10, 13, 10, 9, 9, 45, - 45, 32, 80,114,111, 99,101,115,115, 32,101,118,101,110,116,115, 46, 13, 10, 9, - 9,102,111,114, 32,101, 44, 97, 44, 98, 44, 99, 32,105,110, 32,108,111,118,101, - 46,101,118,101,110,116, 46,112,111,108,108, 40, 41, 32,100,111, 13, 10, 9, 9, - 9,105,102, 32,101, 32, 61, 61, 32,108,111,118,101, 46,101,118,101,110,116, 95, -113,117,105,116, 32,116,104,101,110, 32,114,101,116,117,114,110, 32,101,110,100, - 13, 10, 9, 9, 9,108,111,118,101, 46,104, 97,110,100,108,101,114,115, 91,101, - 93, 40, 97, 44, 98, 44, 99, 41, 13, 10, 9, 9,101,110,100, 13, 10, 13, 10, 9, - 9, 45, 45,108,111,118,101, 46,116,105,109,101,114, 46,115,108,101,101,112, 40, - 49, 48, 41, 13, 10, 9, 9,108,111,118,101, 46,103,114, 97,112,104,105, 99,115, - 46,112,114,101,115,101,110,116, 40, 41, 13, 10, 13, 10, 9,101,110,100, 13, 10, - 13, 10,101,110,100, 13, 10, 13, 10, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, + 9, 9,101,110,100, 44, 13, 10, 9, 9, 91,108,111,118,101, 46,101,118,101,110, +116, 95,106,111,121,115,116,105, 99,107,114,101,108,101, 97,115,101,100, 93, 32, + 61, 32,102,117,110, 99,116,105,111,110, 32, 40,106, 44, 98, 41, 13, 10, 9, 9, + 9,105,102, 32,108,111,118,101, 46,106,111,121,115,116,105, 99,107,114,101,108, +101, 97,115,101,100, 32,116,104,101,110, 32,108,111,118,101, 46,106,111,121,115, +116,105, 99,107,114,101,108,101, 97,115,101,100, 40,106, 44, 98, 41, 32,101,110, +100, 13, 10, 9, 9,101,110,100, 44, 13, 10, 9, 9, 91,108,111,118,101, 46,101, +118,101,110,116, 95,113,117,105,116, 93, 32, 61, 32,102,117,110, 99,116,105,111, +110, 32, 40, 41, 13, 10, 9, 9, 9,114,101,116,117,114,110, 13, 10, 9, 9,101, +110,100, 44, 13, 10, 9,125, 13, 10, 13, 10,101,110,100, 13, 10, 13, 10, 45, 45, + 32, 84,104,105,115, 32, 99, 97,110, 39,116, 32, 98,101, 32,111,118,101,114,114, +105,100,101,110, 46, 32, 13, 10,102,117,110, 99,116,105,111,110, 32,108,111,118, +101, 46, 98,111,111,116, 40, 41, 13, 10, 13, 10, 9,112,114,105,110,116, 40, 34, + 98,111,111,116, 34, 41, 13, 10, 13, 10, 9, 45, 45, 32, 84,104,105,115, 32,105, +115, 32, 97, 98,115,111,108,117,116,101,108,121, 32,110,101,101,100,101,100, 46, + 32, 13, 10, 9,114,101,113,117,105,114,101, 40, 34,108,111,118,101, 46,102,105, +108,101,115,121,115,116,101,109, 34, 41, 13, 10, 13, 10, 9,105,102, 32, 97,114, +103, 32, 97,110,100, 32, 97,114,103, 91, 49, 93, 32,116,104,101,110, 13, 10, 9, + 9,108,111,118,101, 46,102,105,108,101,115,121,115,116,101,109, 46,105,110,105, +116, 40,108,111,118,101, 46,112, 97,116,104, 46,103,101,116,102,117,108,108, 40, +108,111,118,101, 46, 97,114,103, 46,103,101,116, 76,111,119, 40, 97,114,103, 41, + 41, 41, 13, 10, 9, 9,108,111,118,101, 46,102,105,108,101,115,121,115,116,101, +109, 46,115,101,116, 83,111,117,114, 99,101, 40,108,111,118,101, 46,112, 97,116, +104, 46,103,101,116,102,117,108,108, 40, 97,114,103, 91, 49, 93, 41, 41, 13, 10, + 9,101,108,115,101, 13, 10, 9, 9, 45, 45, 32, 68,111, 32,110,111,116, 32,115, +101,116, 32, 97, 32,115,111,117,114, 99,101, 44, 32,108,111, 97,100, 32,116,104, +101, 32,100,101,102, 97,117,108,116, 32,103, 97,109,101, 46, 13, 10, 9, 9,108, +111,118,101, 46,100,101,102, 97,117,108,116,115, 99,114,101,101,110, 40, 41, 13, + 10, 9,101,110,100, 13, 10, 9, 13, 10,101,110,100, 13, 10, 13, 10,102,117,110, + 99,116,105,111,110, 32,108,111,118,101, 46,105,110,105,116, 40, 41, 13, 10, 13, + 10, 9, 45, 45, 32, 67,114,101, 97,116,101, 32,100,101,102, 97,117,108,116, 32, + 99,111,110,102,105,103,117,114, 97,116,105,111,110, 32,115,101,116,116,105,110, +103,115, 46, 13, 10, 9,108,111, 99, 97,108, 32, 99, 32, 61, 32,123, 13, 10, 9, + 9,116,105,116,108,101, 32, 61, 32, 34, 85,110,116,105,116,108,101,100, 34, 44, + 13, 10, 9, 9, 97,117,116,104,111,114, 32, 61, 32, 34, 85,110,110, 97,109,101, +100, 34, 44, 13, 10, 9, 9,118,101,114,115,105,111,110, 32, 61, 32, 48, 44, 13, + 10, 9, 9,115, 99,114,101,101,110, 32, 61, 32,123, 13, 10, 9, 9, 9,119,105, +100,116,104, 32, 61, 32, 56, 48, 48, 44, 13, 10, 9, 9, 9,104,101,105,103,104, +116, 32, 61, 32, 54, 48, 48, 44, 13, 10, 9, 9, 9,102,117,108,108,115, 99,114, +101,101,110, 32, 61, 32,102, 97,108,115,101, 44, 13, 10, 9, 9, 9,118,115,121, +110, 99, 32, 61, 32,116,114,117,101, 44, 13, 10, 9, 9, 9,102,115, 97, 97, 32, + 61, 32, 48, 44, 13, 10, 9, 9,125, 44, 32, 13, 10, 9, 9,109,111,100,117,108, +101,115, 32, 61, 32,123, 13, 10, 9, 9, 9,101,118,101,110,116, 32, 61, 32,116, +114,117,101, 44, 13, 10, 9, 9, 9,107,101,121, 98,111, 97,114,100, 32, 61, 32, +116,114,117,101, 44, 13, 10, 9, 9, 9,109,111,117,115,101, 32, 61, 32,116,114, +117,101, 44, 13, 10, 9, 9, 9,116,105,109,101,114, 32, 61, 32,116,114,117,101, + 44, 13, 10, 9, 9, 9,106,111,121,115,116,105, 99,107, 32, 61, 32,116,114,117, +101, 44, 13, 10, 9, 9, 9,105,109, 97,103,101, 32, 61, 32,116,114,117,101, 44, + 13, 10, 9, 9, 9,103,114, 97,112,104,105, 99,115, 32, 61, 32,116,114,117,101, + 44, 13, 10, 9, 9, 9, 97,117,100,105,111, 32, 61, 32,116,114,117,101, 44, 13, + 10, 9, 9, 9,112,104,121,115,105, 99,115, 32, 61, 32,116,114,117,101, 44, 13, + 10, 9, 9, 9,115,111,117,110,100, 32, 61, 32,116,114,117,101, 44, 13, 10, 9, + 9, 9,110, 97,116,105,118,101, 32, 61, 32,116,114,117,101, 44, 13, 10, 9, 9, + 9,102,111,110,116, 32, 61, 32,116,114,117,101, 44, 13, 10, 9, 9,125, 44, 13, + 10, 9,125, 13, 10, 13, 10, 9, 45, 45, 32, 73,102, 32, 99,111,110,102,105,103, + 32,102,105,108,101, 32,101,120,105,115,116,115, 44, 32,108,111, 97,100, 32,105, +116, 32, 97,110,100, 32, 97,108,108,111,119, 32,105,116, 32,116,111, 32,117,112, +100, 97,116,101, 32, 99,111,110,102,105,103, 32,116, 97, 98,108,101, 46, 13, 10, + 9,105,102, 32,108,111,118,101, 46,102,105,108,101,115,121,115,116,101,109, 46, +101,120,105,115,116,115, 40, 34, 99,111,110,102, 46,108,117, 97, 34, 41, 32,116, +104,101,110, 13, 10, 9, 9,114,101,113,117,105,114,101, 40, 34, 99,111,110,102, + 46,108,117, 97, 34, 41, 13, 10, 9, 9,108,111,118,101, 46, 99,111,110,102, 40, + 99, 41, 13, 10, 9,101,110,100, 13, 10, 9, 13, 10, 9, 45, 45, 32, 71,101,116, +115, 32,100,101,115,105,114,101,100, 32,109,111,100,117,108,101,115, 46, 13, 10, + 9,102,111,114, 32,107, 44,118, 32,105,110, 32,112, 97,105,114,115, 40, 99, 46, +109,111,100,117,108,101,115, 41, 32,100,111, 13, 10, 9, 9,105,102, 32,118, 32, +116,104,101,110, 13, 10, 9, 9, 9,114,101,113,117,105,114,101, 40, 34,108,111, +118,101, 46, 34, 32, 46, 46, 32,107, 41, 13, 10, 9, 9,101,110,100, 13, 10, 9, +101,110,100, 13, 10, 9, 13, 10, 9,105,102, 32,108,111,118,101, 46,107,101,121, + 98,111, 97,114,100, 32,116,104,101,110, 13, 10, 9, 9,108,111,118,101, 46, 99, +114,101, 97,116,101,104, 97,110,100,108,101,114,115, 40, 41, 13, 10, 9,101,110, +100, 13, 10, 9, 13, 10, 9, 45, 45, 32, 83,101,116,117,112, 32,115, 99,114,101, +101,110, 32,104,101,114,101, 46, 13, 10, 9,105,102, 32, 99, 46,115, 99,114,101, +101,110, 32, 97,110,100, 32, 99, 46,109,111,100,117,108,101,115, 46,103,114, 97, +112,104,105, 99,115, 32,116,104,101,110, 32, 13, 10, 9, 9,105,102, 32,108,111, +118,101, 46,103,114, 97,112,104,105, 99,115, 46, 99,104,101, 99,107, 77,111,100, +101, 40, 99, 46,115, 99,114,101,101,110, 46,119,105,100,116,104, 44, 32, 99, 46, +115, 99,114,101,101,110, 46,104,101,105,103,104,116, 44, 32, 99, 46,115, 99,114, +101,101,110, 46,102,117,108,108,115, 99,114,101,101,110, 41, 32,116,104,101,110, + 13, 10, 9, 9, 9,108,111,118,101, 46,103,114, 97,112,104,105, 99,115, 46,115, +101,116, 77,111,100,101, 40, 99, 46,115, 99,114,101,101,110, 46,119,105,100,116, +104, 44, 32, 99, 46,115, 99,114,101,101,110, 46,104,101,105,103,104,116, 44, 32, + 99, 46,115, 99,114,101,101,110, 46,102,117,108,108,115, 99,114,101,101,110, 44, + 32, 99, 46,115, 99,114,101,101,110, 46,118,115,121,110, 99, 44, 32, 99, 46,115, + 99,114,101,101,110, 46,102,115, 97, 97, 41, 13, 10, 9, 9,101,110,100, 13, 10, + 9, 9,108,111,118,101, 46,103,114, 97,112,104,105, 99,115, 46,115,101,116, 67, + 97,112,116,105,111,110, 40, 99, 46,116,105,116,108,101, 41, 13, 10, 9,101,110, +100, 13, 10, 9, 13, 10, 9,105,102, 32,108,111,118,101, 46,102,105,108,101,115, +121,115,116,101,109, 46,101,120,105,115,116,115, 40, 34,109, 97,105,110, 46,108, +117, 97, 34, 41, 32,116,104,101,110, 32,114,101,113,117,105,114,101, 40, 34,109, + 97,105,110, 46,108,117, 97, 34, 41, 32,101,110,100, 13, 10, 9, 13, 10,101,110, +100, 13, 10, 13, 10,102,117,110, 99,116,105,111,110, 32,108,111,118,101, 46,114, +117,110, 40, 41, 13, 10, 13, 10, 9,105,102, 32,108,111,118,101, 46,108,111, 97, +100, 32,116,104,101,110, 32,108,111,118,101, 46,108,111, 97,100, 40, 41, 32,101, +110,100, 13, 10, 13, 10, 9, 45, 45, 32, 77, 97,105,110, 32,108,111,111,112, 32, +116,105,109,101, 46, 13, 10, 9,119,104,105,108,101, 32,116,114,117,101, 32,100, +111, 13, 10, 9, 9,108,111,118,101, 46,116,105,109,101,114, 46,115,116,101,112, + 40, 41, 13, 10, 9, 9,105,102, 32,108,111,118,101, 46,117,112,100, 97,116,101, + 32,116,104,101,110, 32,108,111,118,101, 46,117,112,100, 97,116,101, 40,108,111, +118,101, 46,116,105,109,101,114, 46,103,101,116, 68,101,108,116, 97, 40, 41, 41, + 32,101,110,100, 13, 10, 9, 9,108,111,118,101, 46,103,114, 97,112,104,105, 99, +115, 46, 99,108,101, 97,114, 40, 41, 13, 10, 9, 9,105,102, 32,108,111,118,101, + 46,100,114, 97,119, 32,116,104,101,110, 32,108,111,118,101, 46,100,114, 97,119, + 40, 41, 32,101,110,100, 13, 10, 13, 10, 9, 9, 45, 45, 32, 80,114,111, 99,101, +115,115, 32,101,118,101,110,116,115, 46, 13, 10, 9, 9,102,111,114, 32,101, 44, + 97, 44, 98, 44, 99, 32,105,110, 32,108,111,118,101, 46,101,118,101,110,116, 46, +112,111,108,108, 40, 41, 32,100,111, 13, 10, 9, 9, 9,105,102, 32,101, 32, 61, + 61, 32,108,111,118,101, 46,101,118,101,110,116, 95,113,117,105,116, 32,116,104, +101,110, 32,114,101,116,117,114,110, 32,101,110,100, 13, 10, 9, 9, 9,108,111, +118,101, 46,104, 97,110,100,108,101,114,115, 91,101, 93, 40, 97, 44, 98, 44, 99, + 41, 13, 10, 9, 9,101,110,100, 13, 10, 13, 10, 9, 9, 45, 45,108,111,118,101, + 46,116,105,109,101,114, 46,115,108,101,101,112, 40, 49, 48, 41, 13, 10, 9, 9, +108,111,118,101, 46,103,114, 97,112,104,105, 99,115, 46,112,114,101,115,101,110, +116, 40, 41, 13, 10, 13, 10, 9,101,110,100, 13, 10, 13, 10,101,110,100, 13, 10, + 13, 10, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, - 45, 45, 45, 45, 45, 45, 45, 45, 13, 10, 45, 45, 32, 68,101,102, 97,117,108,116, - 32,115, 99,114,101,101,110, 46, 13, 10, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, + 45, 13, 10, 45, 45, 32, 68,101,102, 97,117,108,116, 32,115, 99,114,101,101,110, + 46, 13, 10, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, - 45, 45, 45, 45, 45, 45, 45, 45, 45, 13, 10, 13, 10,102,117,110, 99,116,105,111, -110, 32,108,111,118,101, 46,100,101,102, 97,117,108,116,115, 99,114,101,101,110, - 40, 41, 13, 10, 13, 10, 9, 45, 45, 32, 77, 97,105,110, 32,108,111,111,112, 32, -103,111,101,115, 32,104,101,114,101, 46, 13, 10, 13, 10,101,110,100, 13, 10, 13, - 10, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, - 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, - 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, - 13, 10, 45, 45, 32, 69,114,114,111,114, 32,115, 99,114,101,101,110, 46, 13, 10, - 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, - 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, - 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 13, - 10, 13, 10,102,117,110, 99,116,105,111,110, 32,108,111,118,101, 46,101,114,114, -111,114,115, 99,114,101,101,110, 40, 41, 13, 10, 9, 13, 10, 9, 45, 45, 32, 77, - 97,105,110, 32,108,111,111,112, 32,103,111,101,115, 32,104,101,114,101, 46, 13, + 45, 45, 13, 10, 13, 10,102,117,110, 99,116,105,111,110, 32,108,111,118,101, 46, +100,101,102, 97,117,108,116,115, 99,114,101,101,110, 40, 41, 13, 10, 13, 10, 13, 10, 13, 10,101,110,100, 13, 10, 13, 10, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, - 45, 45, 45, 45, 45, 45, 45, 45, 45, 13, 10, 45, 45, 32, 84,104,101, 32,114,111, -111,116, 32,111,102, 32, 97,108,108, 32, 99, 97,108,108,115, 46, 13, 10, 45, 45, + 45, 45, 45, 45, 45, 45, 45, 45, 45, 13, 10, 45, 45, 32, 69,114,114,111,114, 32, +115, 99,114,101,101,110, 46, 13, 10, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, - 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 13, 10, 13, - 10,102,117,110, 99,116,105,111,110, 32,101,114,114,111,114, 95,112,114,105,110, -116,101,114, 40,109,115,103, 41, 13, 10, 9,112,114,105,110,116, 40, 34, 98,111, -111,116, 34, 44, 32,109,115,103, 44, 32,100,101, 98,117,103, 46,116,114, 97, 99, -101, 98, 97, 99,107, 40, 41, 41, 13, 10,101,110,100, 13, 10, 13, 10,114,101,115, -117,108,116, 32, 61, 32,120,112, 99, 97,108,108, 40,108,111,118,101, 46, 98,111, -111,116, 44, 32,101,114,114,111,114, 95,112,114,105,110,116,101,114, 41, 13, 10, -114,101,115,117,108,116, 32, 61, 32,120,112, 99, 97,108,108, 40,108,111,118,101, - 46,105,110,105,116, 44, 32,101,114,114,111,114, 95,112,114,105,110,116,101,114, - 41, 13, 10,114,101,115,117,108,116, 32, 61, 32,120,112, 99, 97,108,108, 40,108, -111,118,101, 46,114,117,110, 44, 32,101,114,114,111,114, 95,112,114,105,110,116, -101,114, 41, 13, 10, 13, 10,112,114,105,110,116, 40, 34, 68,111,110,101, 46, 34, - 41, + 45, 45, 45, 45, 45, 45, 45, 45, 13, 10, 13, 10,102,117,110, 99,116,105,111,110, + 32,108,111,118,101, 46,101,114,114,111,114,115, 99,114,101,101,110, 40, 41, 13, + 10, 9, 13, 10, 9, 45, 45, 32, 77, 97,105,110, 32,108,111,111,112, 32,103,111, +101,115, 32,104,101,114,101, 46, 13, 10, 13, 10,101,110,100, 13, 10, 13, 10, 45, + 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, + 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, + 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 13, 10, + 45, 45, 32, 84,104,101, 32,114,111,111,116, 32,111,102, 32, 97,108,108, 32, 99, + 97,108,108,115, 46, 13, 10, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, + 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, + 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, 45, + 45, 45, 45, 45, 45, 45, 13, 10, 13, 10,102,117,110, 99,116,105,111,110, 32,101, +114,114,111,114, 95,112,114,105,110,116,101,114, 40,109,115,103, 41, 13, 10, 9, +112,114,105,110,116, 40, 34, 98,111,111,116, 34, 44, 32,109,115,103, 44, 32,100, +101, 98,117,103, 46,116,114, 97, 99,101, 98, 97, 99,107, 40, 41, 41, 13, 10,101, +110,100, 13, 10, 13, 10,114,101,115,117,108,116, 32, 61, 32,120,112, 99, 97,108, +108, 40,108,111,118,101, 46, 98,111,111,116, 44, 32,101,114,114,111,114, 95,112, +114,105,110,116,101,114, 41, 13, 10,114,101,115,117,108,116, 32, 61, 32,120,112, + 99, 97,108,108, 40,108,111,118,101, 46,105,110,105,116, 44, 32,101,114,114,111, +114, 95,112,114,105,110,116,101,114, 41, 13, 10,114,101,115,117,108,116, 32, 61, + 32,120,112, 99, 97,108,108, 40,108,111,118,101, 46,114,117,110, 44, 32,101,114, +114,111,114, 95,112,114,105,110,116,101,114, 41, 13, 10, 13, 10,112,114,105,110, +116, 40, 34, 68,111,110,101, 46, 34, 41, }; if (luaL_loadbuffer(L,(const char*)B1,sizeof(B1),"boot.lua")==0) lua_call(L, 0, 0); diff --git a/src/scripts/error.lua b/src/scripts/error.lua deleted file mode 100644 index 9f7d42b77..000000000 --- a/src/scripts/error.lua +++ /dev/null @@ -1,175 +0,0 @@ ---------------------------------------------- --- LOVE Error handling code. ---------------------------------------------- - --- Colors. (Only one for now) -c = -{ - { name = "#0072ff", r = 0, g = 114, b = 255 } -} - --- This will be displayed at any time. -display = -{ - message = "", - title = "ERROR" -} - --- Helper variables. -ww, wh = love.graphics.getWidth(), love.graphics.getHeight() - - --- This saves the graphics state when entering --- error mode. -function save_state() - -- Save the graphics state. - state = {} - state.color = love.graphics.getColor() - state.background_color = love.graphics.getBackgroundColor() - state.font = love.graphics.getFont() - state.color_mode = love.graphics.getColorMode() - state.blend_mode = love.graphics.getBlendMode() - state.scissor = { love.graphics.getScissor() } - - -- Set new values. - love.graphics.setFont(font) - love.graphics.setColor(255, 255, 255) - love.graphics.setBackgroundColor(c[1].r, c[1].g, c[1].b) - love.graphics.setColorMode(love.color_normal) - love.graphics.setBlendMode(love.blend_normal) - love.graphics.setScissor() -end - --- This restores the graphics state when --- exiting error mode. -function restore_state() - if state then - if state.color then love.graphics.setColor(state.color) end - if state.background_color then love.graphics.setBackgroundColor(state.background_color) end - if state.font then love.graphics.setFont(state.font) end - if state.color_mode then love.graphics.setColorMode(state.color_mode) end - if state.blend_mode then love.graphics.setBlendMode(state.blend_mode) end - if state.scissor[1] then love.graphics.setScissor(state.scissor[1], state.scissor[2], state.scissor[3], state.scissor[4]) end - end -end - -function load() - - -- Create buttons. - b = - { - { - x = 20, y = wh-42, - w = 150, h = 24, - label = "(Q)uit", - key = love.key_q, - action = love.system.exit, - hover = false - }, - { - x = 171, y = wh-42, - w = 150, h = 24, - label = "(R)estart", - key = love.key_r, - action = game_restart, - hover = false - }, - { - x = 322, y = wh-42, - w = 150, h = 24, - label = "(C)ontinue", - key = love.key_c, - action = game_continue, - hover = false - } - } - font = love.graphics.newFont(love.default_font, 14) - logo = love.graphics.newImage(love.default_logo_128) - logo:setCenter(128, 64) -end - -function update(dt) - local mx, my = love.mouse.getX(), love.mouse.getY() - for i=1,#b do - if mx > b[i].x and mx < b[i].x+b[i].w and my > b[i].y and my < b[i].y+b[i].h and not love.mouse.isDown(love.mouse_left) then - b[i].hover = true - else - b[i].hover = false - end - end -end - -function message(msg, tag) - - if tag == love.tag_command and msg == "savestate" then - save_state() - end - - if tag == love.tag_incompatible then - display.title = "Incompatible game!" - display.message = msg - end - - if tag == love.tag_error then - display.title = "ERROR!" - msg = string.gsub(msg, "stack traceback", "\nStack traceback"); - msg = string.gsub(msg, "%[string \"", ""); - msg = string.gsub(msg, "\"%]:", ":"); - msg = string.gsub(msg, "\t", " "); - display.message = msg - end - - if tag == love.tag_warning then - display.title = "Warning!" - display.message = msg - end -end - -function draw() - love.graphics.setBackgroundColor(c[1].r, c[1].g, c[1].b) - love.graphics.setColor(255, 255, 255) - love.graphics.draw(display.title, 50, 50) - love.graphics.drawf(display.message, 50, 100, ww-100) - love.graphics.draw( logo, love.graphics.getWidth(), love.graphics.getHeight()) - - -- Draw buttons. - for i=1,#b do - if not b[i].hover then love.graphics.setColor(255, 255, 255, 128) else love.graphics.setColor(255, 255, 255, 200) end - love.graphics.quad(love.draw_fill, - b[i].x, b[i].y, - b[i].x, b[i].y+b[i].h, - b[i].x+b[i].w, b[i].y+b[i].h, - b[i].x+b[i].w, b[i].y) - if not b[i].hover then love.graphics.setColor(255, 255, 255) else love.graphics.setColor(0, 114, 255) end - love.graphics.draw(b[i].label, b[i].x + b[i].w/2 - font:getWidth(b[i].label)/2, b[i].y + b[i].h/2 + 5) - end -end - -function keypressed(key) - for i=1,#b do - if b[i].key == key then - b[i].action() - end - end -end - -function mousereleased(x, y, button) - for i=1,#b do - if button == love.mouse_left and x > b[i].x and x < b[i].x+b[i].w and y > b[i].y and y < b[i].y+b[i].h then - b[i].action() - end - end -end - -function game_continue() - restore_state() - love.system.resume() - display.message = "" -end - -function game_restart() - restore_state() - love.system.resume() - love.system.restart() -- Main game is current. - display.message = "" -end \ No newline at end of file