-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Heuretics for determining format type.
- Loading branch information
Showing
9 changed files
with
126 additions
and
20 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -26,9 +26,10 @@ | |
#define STPK_NAME "stunpack" | ||
#define STPK_BUGS "[email protected]" | ||
|
||
#define STPK_RET_OK 0 | ||
#define STPK_RET_ERR 1 | ||
#define STPK_RET_ERR_DATA_LEFT 2 | ||
#define STPK_RET_OK 0 | ||
#define STPK_RET_ERR 1 | ||
#define STPK_RET_ERR_UNKNOWN_FMT 3 | ||
#define STPK_RET_ERR_DATA_LEFT 10 | ||
|
||
typedef enum { | ||
// Automatic format detection when decompressing. | ||
|
@@ -38,7 +39,8 @@ typedef enum { | |
// EA compression library by Frank Barchard used by 4-D Sports Driving for Amiga and 4-D Driving for PC98. | ||
STPK_FMT_BARCHARD, | ||
// Amiga RPck archiver format used for 3-d shapes in 4-D Sports Driving for Amiga. | ||
STPK_FMT_RPCK | ||
STPK_FMT_RPCK, | ||
STPK_FMT_UNKNOWN | ||
} stpk_FmtType; | ||
|
||
typedef enum { | ||
|
@@ -103,6 +105,8 @@ void stpk_deinit(stpk_Context *ctx); | |
|
||
unsigned int stpk_decompress(stpk_Context *ctx); | ||
|
||
stpk_FmtType stpk_getFmtType(stpk_Context *ctx); | ||
|
||
const char *stpk_fmtStuntsVerStr(stpk_FmtStuntsVer version); | ||
|
||
#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
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
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
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