Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Emulators
fMSX
fMSX40-roms.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File fMSX40-roms.patch of Package fMSX
--- fMSX/MSX.c.orig 2008-01-30 01:32:53.000000000 +0300 +++ fMSX/MSX.c 2011-03-17 10:47:50.797722039 +0300 @@ -2761,8 +2761,17 @@ /* Can't give address without size! */ if(Buf&&!Size) return(0); +#define ROMDIR "/usr/share/fMSX/" + /* Open file */ - if(!(F=fopen(Name,"rb"))) return(0); + if(!(F=fopen(Name,"rb"))) + { + char fname[strlen(Name)+strlen(ROMDIR)+1]; + strcpy(fname, ROMDIR); + strcat(fname, Name); + + if(!(F=fopen(fname,"rb"))) return(0); + } /* Determine data size, if wasn't given */ if(!Size)
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor