Skip to content

Commit

Permalink
Now into OpenFileMap
Browse files Browse the repository at this point in the history
Problem: it's much more complex
  • Loading branch information
ioan-chera committed Nov 6, 2023
1 parent e94f84e commit 89bcf4c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/m_loadsave.cc
Original file line number Diff line number Diff line change
Expand Up @@ -974,7 +974,7 @@ void Instance::LoadLevelNum(const Wad_file *wad, int lev_num)
// open a new wad file.
// when 'map_name' is not NULL, try to open that map.
//
void OpenFileMap(const fs::path &filename, const SString &map_namem)
void OpenFileMap(const fs::path &filename, const SString &map_namem) noexcept(false)
{
// TODO: change this to start a new instance
SString map_name = map_namem;
Expand Down Expand Up @@ -1051,6 +1051,8 @@ void OpenFileMap(const fs::path &filename, const SString &map_namem)
// must be after LoadLevel as we need the Level_format
// TODO: same here
gInstance.Main_LoadResources(gInstance.loaded);

// TODO: RESTORE loaded, wad.master, LoadLevel ON FAILURE
}


Expand Down
2 changes: 1 addition & 1 deletion src/m_loadsave.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ struct LoadingData
MapFormat levelFormat = {}; // format of current map
};

void OpenFileMap(const fs::path &filename, const SString &map_name = "");
void OpenFileMap(const fs::path &filename, const SString &map_name = "") noexcept(false);

#endif /* __EUREKA_E_LOADSAVE_H__ */

Expand Down

0 comments on commit 89bcf4c

Please sign in to comment.