Try this code then:

function loadLevel(STRING* name)
{
STRING* fullpath = "";//this creates an empty string
str_cpy(fullpath, name); //this sets fullpath = to the name string
str_cat(fullpath, "\\config.cfg");
}


Then add in the main

function main()
{
levelLoad("map_name");
}

I have tried this and it should work

fangedscorpion


"Pow! You are dead! Not big suprise!" -Heavy