You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/games-puzzle/xwelltris/files/xwelltris-1.0.1-scorefile-d...

17 lines
615 B

--- a/src/commonfuncs.cxx
+++ b/src/commonfuncs.cxx
@@ -41,7 +41,12 @@ bool find_full_path_for_file(char* name, char* ret_full_pathname, FMode mode)
do
{
- sprintf(ret_full_pathname,"%s/%s",GLOBAL_SEARCH,name); //First check in GLOBAL_SEARCH dir
+ sprintf(ret_full_pathname,"%s/%s","@GENTOO_PORTAGE_EPREFIX@/var/lib/xwelltris",name); // First check in /var/lib/xwelltris
+ fd=open(ret_full_pathname,fmode);
+ if(fd>0)
+ break;
+
+ sprintf(ret_full_pathname,"%s/%s",GLOBAL_SEARCH,name); // Then in GLOBAL_SEARCH dir
fd=open(ret_full_pathname,fmode);
if(fd>0)
break;