Skip to content

Commit

Permalink
show history again
Browse files Browse the repository at this point in the history
  • Loading branch information
unknown committed Sep 14, 2021
1 parent d239103 commit 411a58e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
12 changes: 9 additions & 3 deletions src/datafile.c
Original file line number Diff line number Diff line change
Expand Up @@ -593,16 +593,22 @@ int load_driver_history (const struct GameDriver *drv, char *buffer, int bufsize


if(!history_filename)
history_filename = "history.dat";
{
// use individual history file for each build
// history_filename = "history.dat";
char tmp[64];
sprintf(tmp, "hist/%s-history.dat", BUILD_NAME);
history_filename = tmp;
}

/* try to open history datafile */
if (ParseOpen (history_filename))
{
/* create index if necessary */
if (hist_idx)
history = 1;
// else
// history = (index_datafile (&hist_idx) != 0);
else
history = (index_datafile (&hist_idx) != 0);

/* load history text */
if (hist_idx)
Expand Down
2 changes: 1 addition & 1 deletion src/psp/pspmain.c
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ int main(int argc, char *argv[])

// create nonexisting dirs
// bad file descriptor workaround
char needed_dirs[4][256] = { "roms", "cfg", "nvram", "sta" };
char needed_dirs[4][256] = { "roms", "cfg", "nvram", "sta", "hist" };
for (int i = 0; i < 4; i++) {
if(sceIoDopen(needed_dirs[i]) < 0) {
sceIoMkdir(needed_dirs[i], 0777);
Expand Down

0 comments on commit 411a58e

Please sign in to comment.