~ubuntu-branches/ubuntu/lucid/mupen64plus/lucid-updates

« back to all changes in this revision

Viewing changes to debian/patches/102-plugin-searchpath.patch

  • Committer: Bazaar Package Importer
  • Author(s): Sven Eckelmann
  • Date: 2009-09-28 15:23:17 UTC
  • Revision ID: james.westby@ubuntu.com-20090928152317-84y17o8hlh7batmw
Tags: 1.5+dfsg1-5
* debian/patches:
  - Change to dep3 patch tagging guidelines
  - Remove number before patches as order is given by debian/patches/series
  - Add gtk-open-filter.patch, Show files with .n64 and .v64 extension in
    filtered open file dialog (Closes: #546046)
  - Add noexecstack.patch, Don't enable executable stack by default
    (Closes: #547644)
  - Add fix_readpng.patch, Fix crash when loading png due to reordering
    optimizer
  - Add jttl_fix_romclosed.patch, Stop audio processing thread before freeing
    buffers to fix segfault during stop of emulation
  - Add rice_nodebug.patch, Don't enable excessive debug functionality in
    rice_video
  - Add interpreter_x86_fldcw.patch, Correctly set floating point control word
  - Add load-fpr-location.patch, Set register bank location when loading
    savestate

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
From 16f3acaa60b0abb641e1097ffc919439be5dc63a Mon Sep 17 00:00:00 2001
2
 
From: Sven Eckelmann <sven.eckelmann@gmx.de>
3
 
Date: Mon, 1 Jun 2009 15:46:01 +0200
4
 
Subject: [PATCH] Use /usr/lib/mupen64plus as plugin searchpath
5
 
 
6
 
 
7
 
Signed-off-by: Sven Eckelmann <sven.eckelmann@gmx.de>
8
 
---
9
 
 main/main.c |    3 +--
10
 
 1 files changed, 1 insertions(+), 2 deletions(-)
11
 
 
12
 
diff --git a/main/main.c b/main/main.c
13
 
index e355091..d57bafd 100644
14
 
--- a/main/main.c
15
 
+++ b/main/main.c
16
 
@@ -1476,8 +1476,7 @@ int main(int argc, char *argv[])
17
 
     // if it's not set in the config file, use the /plugins/ sub-folder of the installation directory
18
 
     if (strlen(dirpath) < 2)
19
 
     {
20
 
-        strncpy(dirpath, l_InstallDir, PATH_MAX);
21
 
-        strncat(dirpath, "plugins/", PATH_MAX - strlen(dirpath));
22
 
+        strncpy(dirpath, "/usr/lib/mupen64plus/", PATH_MAX);
23
 
         dirpath[PATH_MAX-1] = '\0';
24
 
     }
25
 
     // scan the plugin directory and set the config dir for the plugins
26
 
1.6.3.1
27