03f1723d88
(this message is copied from my blog) So I took the lazy route and just committed the entire splice between the jam branch and the development branch all at once. It is exactly as terrible as you think it is, but I've been out of coding for 2 weeks, and I want to get some shit done. I'll pick through each piece one by one, by comparing the diffs from the develop branch to the current jam-merge branch. Those developers I met on Monday said they were impressed by my ability to manage a large codebase, but if they saw this I'd expect they'd probably take that back. And oh god it's been 3 weeks since I touched the main branch WTF?
56 lines
1.0 KiB
Lua
56 lines
1.0 KiB
Lua
--[[
|
|
--reroute the program while in development
|
|
config = {debug = true}
|
|
dofile("../rsc/setup.lua")
|
|
--]]
|
|
|
|
--catch the debug signal if the program was rerouted
|
|
local debug = false
|
|
if config ~= nil then
|
|
debug = config.debug
|
|
end
|
|
|
|
--the program's configuration
|
|
config = {
|
|
--common stuff
|
|
debug = debug,
|
|
dir = {
|
|
fonts = "rsc/graphics/fonts/",
|
|
logos = "rsc/graphics/logos/",
|
|
sprites = "rsc/graphics/sprites/",
|
|
tilesets = "rsc/graphics/tilesets/",
|
|
interface = "rsc/graphics/interface/",
|
|
scripts = "rsc/scripts/",
|
|
maps = "rsc/maps/"
|
|
},
|
|
|
|
--client specific stuff
|
|
client = {
|
|
screen = {
|
|
width = 800,
|
|
height = 600,
|
|
fullscreen = false
|
|
},
|
|
username = "Kayne",
|
|
handle = "Ratstail91",
|
|
avatar = "elliot2.bmp"
|
|
},
|
|
|
|
--server specific stuff
|
|
server = {
|
|
mapname = "mapsave",
|
|
host = "255.255.255.255",
|
|
port = 21795,
|
|
name = "local",
|
|
dbname = "database.db"
|
|
}
|
|
}
|
|
|
|
--development environment
|
|
if config.debug then
|
|
for k, v in pairs(config.dir) do
|
|
config.dir[k] = string.format("../%s", v)
|
|
end
|
|
end
|
|
|