Skip to content

Commit

Permalink
Update M2000.c
Browse files Browse the repository at this point in the history
  • Loading branch information
zx70 authored Jul 17, 2021
1 parent acc78df commit 2cda103
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions M2000.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ extern int SaveCPU;
extern int videomode;

static int CpuSpeed;
#ifdef ALLEGRO
#include <allegro5/allegro.h>
#endif
// Odd Allegro implementations have (had?) _argc _argv already declared (!?!??)
static int _argc;
static char *_argv[256];
static char MainConfigFile[MAX_CONFIG_FILE_SIZE];
Expand All @@ -75,6 +79,14 @@ static void _fixpath (char *old,char *new)
}
#endif

#ifdef _WIN32
/* Get full path name, convert all backslashes to UNIX style slashes */
static void _fixpath (char *old,char *new)
{
strcpy (new,old);
}
#endif

/* Parse the command line options */
static int ParseOptions (int argc,char *argv[])
{
Expand Down

0 comments on commit 2cda103

Please sign in to comment.