missing changes...

This commit is contained in:
Flyinghead 2018-11-17 12:29:59 +01:00
parent 6274e4c3d3
commit 4be52b7b69
2 changed files with 12 additions and 0 deletions

View File

@ -117,6 +117,17 @@ string get_game_save_prefix()
return get_writable_data_path("/data/") + save_file;
}
string get_game_basename()
{
char image_path[512];
cfgLoadStr("config", "image", image_path, "");
string game_dir = image_path;
size_t lastindex = game_dir.find_last_of(".");
if (lastindex != -1)
game_dir = game_dir.substr(0, lastindex);
return game_dir;
}
#if 0
//File Enumeration
void FindAllFiles(FileFoundCB* callback,wchar* dir,void* param)

View File

@ -272,6 +272,7 @@ string get_readonly_data_path(const string& filename);
bool file_exists(const string& filename);
string get_game_save_prefix();
string get_game_basename();
class VArray2
{