-
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.
- Add DOS support for find_resource_file
- CWSDPMI stub added to executable now (DOS) - shfolder.dll run for Windows < 5.0 at setup time - Setup script no longer has hard-coded paths
- Loading branch information
Showing
8 changed files
with
120 additions
and
30 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
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 |
---|---|---|
|
@@ -13,3 +13,5 @@ CD = 255 | |
B2Music = 1 | ||
InitialMusic = deadlock.xm | ||
|
||
[Game] | ||
Speed = 1 |
Binary file not shown.
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 |
---|---|---|
@@ -0,0 +1,70 @@ | ||
/*****************************************************/ | ||
/* Ultimate Blocks */ | ||
/* Copyright (c) An Ly 2000, Owen Rudge 2001, 2008 */ | ||
/*****************************************************/ | ||
#if defined(DJGPP) | ||
|
||
#include <allegro.h> | ||
#include "blocks3.h" | ||
|
||
/*! \brief Return the name of 'significant' directories. | ||
* | ||
* \param dir Enumerated constant for directory type \sa DATA_DIR et al. | ||
* \param file File name below that directory. | ||
* \returns the combined path | ||
*/ | ||
const char *find_resource_file (int dir, const char *file) | ||
{ | ||
static char ans[MAX_PATH]; | ||
|
||
switch (dir) | ||
{ | ||
case APP_DIR: | ||
if (file == NULL) | ||
strcpy(ans, "."); | ||
else | ||
strcpy(ans, file); | ||
|
||
break; | ||
|
||
case GRAPHICS_DIR: | ||
if (file == NULL) | ||
strcpy(ans, "graphics"); | ||
else | ||
sprintf(ans, "graphics/%s", file); | ||
|
||
break; | ||
|
||
case MUSIC_DIR: | ||
if (file == NULL) | ||
strcpy(ans, "music"); | ||
else | ||
sprintf(ans, "music/%s", file); | ||
|
||
break; | ||
|
||
case MAP_DIR: | ||
if (file == NULL) | ||
strcpy(ans, "maps"); | ||
else | ||
sprintf(ans, "maps/%s", file); | ||
|
||
break; | ||
|
||
case SAVE_DIR: | ||
case SETTINGS_DIR: | ||
if (file == NULL) | ||
strcpy(ans, "."); | ||
else | ||
strcpy(ans, file); | ||
|
||
break; | ||
|
||
default: | ||
return NULL; | ||
} | ||
|
||
return fix_filename_slashes (ans); | ||
} | ||
|
||
#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
Binary file not shown.
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