missing changes...
This commit is contained in:
parent
6274e4c3d3
commit
4be52b7b69
|
@ -117,6 +117,17 @@ string get_game_save_prefix()
|
||||||
return get_writable_data_path("/data/") + save_file;
|
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
|
#if 0
|
||||||
//File Enumeration
|
//File Enumeration
|
||||||
void FindAllFiles(FileFoundCB* callback,wchar* dir,void* param)
|
void FindAllFiles(FileFoundCB* callback,wchar* dir,void* param)
|
||||||
|
|
|
@ -272,6 +272,7 @@ string get_readonly_data_path(const string& filename);
|
||||||
bool file_exists(const string& filename);
|
bool file_exists(const string& filename);
|
||||||
|
|
||||||
string get_game_save_prefix();
|
string get_game_save_prefix();
|
||||||
|
string get_game_basename();
|
||||||
|
|
||||||
class VArray2
|
class VArray2
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue