Skip to content

Commit

Permalink
Change where navprj and nav files are stored
Browse files Browse the repository at this point in the history
  • Loading branch information
KimLS committed Jan 14, 2016
1 parent cade414 commit da0d455
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions map_edit/module_navigation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -824,7 +824,7 @@ void ModuleNavigation::SaveNavSettings()
{
//write project setting files
//zone_name.navprj
std::string filename = "save/" + m_scene->GetZoneName() + ".navprj";
std::string filename = "project/" + m_scene->GetZoneName() + ".navprj";
FILE *f = fopen(filename.c_str() , "wb");

if (f) {
Expand Down Expand Up @@ -885,7 +885,7 @@ void ModuleNavigation::SaveNavSettings()

bool ModuleNavigation::LoadNavSettings()
{
std::string filename = "save/" + m_scene->GetZoneName() + ".navprj";
std::string filename = "project/" + m_scene->GetZoneName() + ".navprj";
FILE *f = fopen(filename.c_str(), "rb");
if (f) {
char magic[6] = { 0 };
Expand Down Expand Up @@ -1135,7 +1135,7 @@ void ModuleNavigation::SaveNavMesh()
if (!m_nav_mesh)
return;

std::string filename = "save/" + m_scene->GetZoneName() + ".nav";
std::string filename = "maps/" + m_scene->GetZoneName() + ".nav";
FILE *f = fopen(filename.c_str(), "wb");

if (f) {
Expand Down Expand Up @@ -1181,7 +1181,7 @@ void ModuleNavigation::SaveNavMesh()

void ModuleNavigation::LoadNavMesh()
{
std::string filename = "save/" + m_scene->GetZoneName() + ".nav";
std::string filename = "maps/" + m_scene->GetZoneName() + ".nav";
FILE *f = fopen(filename.c_str(), "rb");
if (f) {
char magic[9] = { 0 };
Expand Down

0 comments on commit da0d455

Please sign in to comment.