don't need writemode when reading the file
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3102
This commit is contained in:
parent
8ca07ff1f0
commit
5bb96c2dba
1 changed files with 2 additions and 2 deletions
|
@ -16,7 +16,7 @@
|
|||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
/* $Id: sdl_mapper.cpp,v 1.47 2007-11-07 17:41:32 c2woody Exp $ */
|
||||
/* $Id: sdl_mapper.cpp,v 1.48 2008-02-16 20:47:41 qbix79 Exp $ */
|
||||
|
||||
#include <vector>
|
||||
#include <list>
|
||||
|
@ -2102,7 +2102,7 @@ static void MAPPER_SaveBinds(void) {
|
|||
}
|
||||
|
||||
static bool MAPPER_LoadBinds(void) {
|
||||
FILE * loadfile=fopen(mapper.filename,"rb+");
|
||||
FILE * loadfile=fopen(mapper.filename,"rb");
|
||||
if (!loadfile) return false;
|
||||
char linein[512];
|
||||
while (fgets(linein,512,loadfile)) {
|
||||
|
|
Loading…
Add table
Reference in a new issue