Skip to content

Commit

Permalink
Last minute updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Gil Megidish committed May 5, 2015
1 parent f4e60e3 commit 3de27e5
Show file tree
Hide file tree
Showing 6 changed files with 67 additions and 43 deletions.
24 changes: 24 additions & 0 deletions src/VisualC/alien.dsp

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

46 changes: 23 additions & 23 deletions src/game2bin.c
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
#include <memory.h>
#include "debug.h"
#include "cd_iso.h"
#include "game2bin.h"

static char game2bin[409600];

void copy_from_game2bin(void *dst, int offset, int length)
{
memcpy(dst, game2bin + offset, length);
}

int game2bin_init()
{
if (read_file("GAME2.BIN", game2bin) < 0)
{
LOG(("failure reading game2bin file\n"));
return -1;
}

LOG(("success reading game2bin file\n"));
return 0;
}
#include <memory.h>
#include "debug.h"
#include "cd_iso.h"
#include "game2bin.h"

static char game2bin[409600];

void copy_from_game2bin(void *dst, int offset, int length)
{
memcpy(dst, game2bin + offset, length);
}

int game2bin_init()
{
if (read_file("GAME2.BIN", game2bin) < 0)
{
LOG(("failure reading game2bin file\n"));
return -1;
}

LOG(("success reading game2bin file\n"));
return 0;
}
14 changes: 7 additions & 7 deletions src/game2bin.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef __GAME2BIN_INCLUDED__
#define __GAME2BIN_INCLUDED__

int game2bin_init();
void copy_from_game2bin(void *dst, int offset, int length);

#endif
#ifndef __GAME2BIN_INCLUDED__
#define __GAME2BIN_INCLUDED__

int game2bin_init();
void copy_from_game2bin(void *dst, int offset, int length);

#endif
2 changes: 1 addition & 1 deletion src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
#include "getopt.h"
#endif

static char *VERSION = "1.2.0";
static char *VERSION = "1.2.2";

static char *QUICKSAVE_FILENAME = "quicksave";
static char *RECORDED_KEYS_FILENAME = "recorded-keys";
Expand Down
12 changes: 6 additions & 6 deletions src/scale2x.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#ifndef __SCALER2X_INCLUDED__
#define __SCALER2X_INCLUDED__

void scale2x(SDL_Surface *dst, Uint8 *srcpix, int srcpitch, int width, int height);

#endif
#ifndef __SCALER2X_INCLUDED__
#define __SCALER2X_INCLUDED__

void scale2x(SDL_Surface *dst, Uint8 *srcpix, int srcpitch, int width, int height);

#endif
12 changes: 6 additions & 6 deletions src/scale3x.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#ifndef __SCALER3X_INCLUDED__
#define __SCALER3X_INCLUDED__

void scale3x(SDL_Surface *dst, Uint8 *srcpix, int srcpitch, int width, int height);

#endif
#ifndef __SCALER3X_INCLUDED__
#define __SCALER3X_INCLUDED__

void scale3x(SDL_Surface *dst, Uint8 *srcpix, int srcpitch, int width, int height);

#endif

0 comments on commit 3de27e5

Please sign in to comment.