-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Gil Megidish
committed
May 5, 2015
1 parent
f4e60e3
commit 3de27e5
Showing
6 changed files
with
67 additions
and
43 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |