Commit 65731112 authored by Maiyannah Bishop's avatar Maiyannah Bishop

Change ValgrindMessage to Valkryja.Valgrind.Message for #171

parent cc318d11
......@@ -42,7 +42,7 @@ else
end
modulepath = nil
function ValgrindMessage(message)
function Valkryja.Valgrind.Message(message)
if not tostring(message) then return false end
cecho("<BlueViolet>(<CornflowerBlue>Valgrind<BlueViolet>):<reset> "..tostring(message).."<reset>\n")
return true
......@@ -79,7 +79,7 @@ function Valkryja.Valgrind.InstallModule(alias)
-- retrieve remote file if we need to
if not lfs.attributes(desiredLocalPath) then
ValgrindMessage(desiredLocalPath.." doesn't exist ... attempting to download from "..desiredRemotePath)
Valkryja.Valgrind.Message(desiredLocalPath.." doesn't exist ... attempting to download from "..desiredRemotePath)
success = downloadFile(desiredLocalPath, desiredRemotePath)
else
ValgrindMessage(desiredLocalPath.." already exists.")
......@@ -91,7 +91,7 @@ function Valkryja.Valgrind.InstallModule(alias)
tempTimer(0.50, [[ValgrindMessage('Module "]]..alias..[[" not installed, attempting to install.')]])
tempTimer(0.50, [[success = installModule("]]..desiredLocalPath..[[")]])
else
ValgrindMessage("Module "..alias.." already installed.")
Valkryja.Valgrind.Message("Module "..alias.." already installed.")
success = true
end
......@@ -242,7 +242,7 @@ end
function Valkryja.Valgrind.InstallSingleIncidental(file_name)
file_path = Valkryja.SystemPath..file_name..".md"
if not (lfs.attributes(file_path)) then
ValgrindMessage(file_path.." not found, attempting to retrieve from "..Valkryja.Valgrind.RetrievalBase..file_name..".md")
Valkryja.Valgrind.Message(file_path.." not found, attempting to retrieve from "..Valkryja.Valgrind.RetrievalBase..file_name..".md")
success = downloadFile(file_path, Valkryja.Valgrind.RetrievalBase..file_name..".md")
end
file_path = nil
......@@ -256,8 +256,8 @@ end
function Valkryja.Valgrind.InstallIncidentals()
pcall(Valkryja.Valgrind.InstallSingleIncidental, "credits")
pcall(Valkryja.Valgrind.InstallSingleIncidental, "licensees")
pcall(Valkryja.Valgrind.InstallSingleIncidental, "paid_license")
pcall(Valkryja.Valgrind.InstallSingleIncidental, "readme")
pcall(Valkryja.Valgrind.InstallSingleIncidental, "paid_license")
pcall(Valkryja.Valgrind.InstallSingleIncidental, "readme")
end
-- -----------------------------------------------------------------------------
......@@ -267,7 +267,7 @@ end
function Valkryja.Valgrind.InstallSingleImage(image_name)
image_path = Valkryja.SystemPath.."/img/"..image_name..".png"
if not (lfs.attributes(image_path)) then
ValgrindMessage(image_path.." not found, attempting to retrieve from "..Valkryja.Valgrind.RetrievalBase.."/img/"..image_name..".png")
Valkryja.Valgrind.Message(image_path.." not found, attempting to retrieve from "..Valkryja.Valgrind.RetrievalBase.."/img/"..image_name..".png")
success = downloadFile(image_path, Valkryja.Valgrind.RetrievalBase.."/img/"..image_name..".png")
end
return success
......@@ -279,34 +279,34 @@ end
function Valkryja.Valgrind.InstallImages()
success = lfs.mkdir(Valkryja.SystemPath.."/img")
pcall(Valkryja.Valgrind.InstallSingleImage, "avatar_decoration")
pcall(Valkryja.Valgrind.InstallSingleImage, "canvas_bottom")
pcall(Valkryja.Valgrind.InstallSingleImage, "canvas_left")
pcall(Valkryja.Valgrind.InstallSingleImage, "canvas_right")
pcall(Valkryja.Valgrind.InstallSingleImage, "canvas_top")
pcall(Valkryja.Valgrind.InstallSingleImage, "chat_bg")
pcall(Valkryja.Valgrind.InstallSingleImage, "chat_tab1_active")
pcall(Valkryja.Valgrind.InstallSingleImage, "chat_tab1_inactive")
pcall(Valkryja.Valgrind.InstallSingleImage, "chat_tab2_active")
pcall(Valkryja.Valgrind.InstallSingleImage, "chat_tab2_inactive")
pcall(Valkryja.Valgrind.InstallSingleImage, "chat_tab3_active")
pcall(Valkryja.Valgrind.InstallSingleImage, "chat_tab3_inactive")
pcall(Valkryja.Valgrind.InstallSingleImage, "chat_tab4_active")
pcall(Valkryja.Valgrind.InstallSingleImage, "chat_tab4_inactive")
pcall(Valkryja.Valgrind.InstallSingleImage, "console_bottom")
pcall(Valkryja.Valgrind.InstallSingleImage, "console_cap1")
pcall(Valkryja.Valgrind.InstallSingleImage, "console_cap2")
pcall(Valkryja.Valgrind.InstallSingleImage, "console_cap3")
pcall(Valkryja.Valgrind.InstallSingleImage, "console_cap4")
pcall(Valkryja.Valgrind.InstallSingleImage, "console_left")
pcall(Valkryja.Valgrind.InstallSingleImage, "console_right")
pcall(Valkryja.Valgrind.InstallSingleImage, "console_top")
pcall(Valkryja.Valgrind.InstallSingleImage, "generic_background")
pcall(Valkryja.Valgrind.InstallSingleImage, "prompt_bg")
pcall(Valkryja.Valgrind.InstallSingleImage, "scrollbar")
pcall(Valkryja.Valgrind.InstallSingleImage, "sea_bg")
pcall(Valkryja.Valgrind.InstallSingleImage, "splash")
pcall(Valkryja.Valgrind.InstallSingleImage, "title")
pcall(Valkryja.Valgrind.InstallSingleImage, "valkryja-websplash")
pcall(Valkryja.Valgrind.InstallSingleImage, "canvas_bottom")
pcall(Valkryja.Valgrind.InstallSingleImage, "canvas_left")
pcall(Valkryja.Valgrind.InstallSingleImage, "canvas_right")
pcall(Valkryja.Valgrind.InstallSingleImage, "canvas_top")
pcall(Valkryja.Valgrind.InstallSingleImage, "chat_bg")
pcall(Valkryja.Valgrind.InstallSingleImage, "chat_tab1_active")
pcall(Valkryja.Valgrind.InstallSingleImage, "chat_tab1_inactive")
pcall(Valkryja.Valgrind.InstallSingleImage, "chat_tab2_active")
pcall(Valkryja.Valgrind.InstallSingleImage, "chat_tab2_inactive")
pcall(Valkryja.Valgrind.InstallSingleImage, "chat_tab3_active")
pcall(Valkryja.Valgrind.InstallSingleImage, "chat_tab3_inactive")
pcall(Valkryja.Valgrind.InstallSingleImage, "chat_tab4_active")
pcall(Valkryja.Valgrind.InstallSingleImage, "chat_tab4_inactive")
pcall(Valkryja.Valgrind.InstallSingleImage, "console_bottom")
pcall(Valkryja.Valgrind.InstallSingleImage, "console_cap1")
pcall(Valkryja.Valgrind.InstallSingleImage, "console_cap2")
pcall(Valkryja.Valgrind.InstallSingleImage, "console_cap3")
pcall(Valkryja.Valgrind.InstallSingleImage, "console_cap4")
pcall(Valkryja.Valgrind.InstallSingleImage, "console_left")
pcall(Valkryja.Valgrind.InstallSingleImage, "console_right")
pcall(Valkryja.Valgrind.InstallSingleImage, "console_top")
pcall(Valkryja.Valgrind.InstallSingleImage, "generic_background")
pcall(Valkryja.Valgrind.InstallSingleImage, "prompt_bg")
pcall(Valkryja.Valgrind.InstallSingleImage, "scrollbar")
pcall(Valkryja.Valgrind.InstallSingleImage, "sea_bg")
pcall(Valkryja.Valgrind.InstallSingleImage, "splash")
pcall(Valkryja.Valgrind.InstallSingleImage, "title")
pcall(Valkryja.Valgrind.InstallSingleImage, "valkryja-websplash")
-- Afflictions
success = lfs.mkdir(Valkryja.SystemPath.."/img/afflictions")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment