[mupen64plus] 103/262: Write savestates to correct path

Sven Eckelmann ecsv-guest at moszumanska.debian.org
Thu Nov 26 05:59:22 UTC 2015


This is an automated email from the git hooks/post-receive script.

ecsv-guest pushed a commit to branch master
in repository mupen64plus.

commit fa2824e8a9b1dc000f11e179ecee9a5062408339
Author: Sven Eckelmann <sven.eckelmann at gmx.de>
Date:   Tue Sep 1 14:44:18 2009 +0200

    Write savestates to correct path
---
 debian/patches/116-xdg-basedir.patch | 45 +++++++++++++++++++++---------------
 1 file changed, 27 insertions(+), 18 deletions(-)

diff --git a/debian/patches/116-xdg-basedir.patch b/debian/patches/116-xdg-basedir.patch
index 0963067..79c678a 100644
--- a/debian/patches/116-xdg-basedir.patch
+++ b/debian/patches/116-xdg-basedir.patch
@@ -1,4 +1,4 @@
-From 2fbc059876dfe514195163c5b87c8658ca715402 Mon Sep 17 00:00:00 2001
+From 1561fa13d87d6d6fe59374406e538bb8a4cfa028 Mon Sep 17 00:00:00 2001
 From: Sven Eckelmann <sven.eckelmann at gmx.de>
 Date: Mon, 31 Aug 2009 23:29:24 +0200
 Subject: [PATCH] Use XDG Base Directory compliant directories
@@ -38,27 +38,27 @@ that platform was not changed.
 Signed-off-by: Sven Eckelmann <sven.eckelmann at gmx.de>
 ---
  Makefile                      |    4 +-
- blight_input/Input_1.1.h      |   22 ++++++++
- doc/Audio_1.1.h               |   22 ++++++++
- doc/Audio_1.2.h               |   22 ++++++++
- doc/Graphics_1.3.h            |   22 ++++++++
- doc/Input_1.1.h               |   22 ++++++++
- dummy_audio/Audio_1.1.h       |   22 ++++++++
- dummy_input/Input_1.1.h       |   22 ++++++++
- dummy_video/Graphics_1.3.h    |   22 ++++++++
- glide64/Gfx1.3.h              |   22 ++++++++
- jttl_audio/Audio_1.2.h        |   22 ++++++++
- main/main.c                   |  121 +++++++++++++++++++++++++++++++++++------
+ blight_input/Input_1.1.h      |   22 +++++++
+ doc/Audio_1.1.h               |   22 +++++++
+ doc/Audio_1.2.h               |   22 +++++++
+ doc/Graphics_1.3.h            |   22 +++++++
+ doc/Input_1.1.h               |   22 +++++++
+ dummy_audio/Audio_1.1.h       |   22 +++++++
+ dummy_input/Input_1.1.h       |   22 +++++++
+ dummy_video/Graphics_1.3.h    |   22 +++++++
+ glide64/Gfx1.3.h              |   22 +++++++
+ jttl_audio/Audio_1.2.h        |   22 +++++++
+ main/main.c                   |  123 ++++++++++++++++++++++++++++++++++------
  main/main.h                   |    2 +
  main/plugin.c                 |   12 ++++-
  main/plugin.h                 |    2 +-
  main/romcache.c               |    2 +-
  pre.mk                        |    9 +++
- rice_video/Graphics_1.3.h     |   22 ++++++++
- rice_video/TextureFilters.cpp |    8 ++--
- rice_video/Video.cpp          |   80 ++++++++++++++++++++++++++--
- rsp_hle/Audio_1.1.h           |   22 ++++++++
- 21 files changed, 473 insertions(+), 31 deletions(-)
+ rice_video/Graphics_1.3.h     |   22 +++++++
+ rice_video/TextureFilters.cpp |    8 +-
+ rice_video/Video.cpp          |   80 +++++++++++++++++++++++++-
+ rsp_hle/Audio_1.1.h           |   22 +++++++
+ 21 files changed, 474 insertions(+), 32 deletions(-)
 
 diff --git a/Makefile b/Makefile
 index 839ab60..76c6489 100644
@@ -407,7 +407,7 @@ index 0decf07..43045c2 100644
    Purpose:  To increase the audio volume
    input:    none
 diff --git a/main/main.c b/main/main.c
-index d57bafd..8215420 100644
+index d57bafd..3c88498 100644
 --- a/main/main.c
 +++ b/main/main.c
 @@ -34,6 +34,8 @@
@@ -445,6 +445,15 @@ index d57bafd..8215420 100644
  char *get_installpath()
  {
      return l_InstallDir;
+@@ -181,7 +195,7 @@ char *get_installpath()
+ char *get_savespath()
+ {
+     static char path[PATH_MAX];
+-    strncpy(path, get_configpath(), PATH_MAX-5);
++    strncpy(path, get_datapath(), PATH_MAX-5);
+     strcat(path, "save/");
+     return path;
+ }
 @@ -1075,6 +1089,8 @@ void parseCommandLine(int argc, char **argv)
          OPT_EMUMODE,
          OPT_SSHOTDIR,

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/mupen64plus.git



More information about the Pkg-games-commits mailing list