Create screenshot folder as needed.
This commit is contained in:
parent
2031d5a301
commit
775dc8d71d
|
@ -124,6 +124,7 @@ static void handleCommandLine(int argc, char *argv[])
|
|||
{
|
||||
dev.debug = 1;
|
||||
SDL_LogSetPriority(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_DEBUG);
|
||||
createScreenshotFolder();
|
||||
}
|
||||
|
||||
if (strcmp(argv[i], "-info") == 0)
|
||||
|
@ -164,6 +165,7 @@ static void handleCommandLine(int argc, char *argv[])
|
|||
if (strcmp(argv[i], "-screenshots") == 0)
|
||||
{
|
||||
dev.takeScreenshots = 1;
|
||||
createScreenshotFolder();
|
||||
}
|
||||
|
||||
if (strcmp(argv[i], "-world") == 0)
|
||||
|
|
|
@ -39,6 +39,7 @@ extern void presentScene(void);
|
|||
extern void saveScreenshot(char *name);
|
||||
extern void saveTrophyScreenshot(void);
|
||||
extern void initTitle(void);
|
||||
extern void createScreenshotFolder(void);
|
||||
|
||||
App app;
|
||||
Camera camera;
|
||||
|
|
|
@ -44,10 +44,10 @@ extern void initGraphics(void);
|
|||
extern void initSounds(void);
|
||||
extern void initSprites(void);
|
||||
extern void initStats(void);
|
||||
extern void initStrings(void);
|
||||
extern void initTextures(void);
|
||||
extern void initTrophies(void);
|
||||
extern void initWidgets(void);
|
||||
extern void initStrings(void);
|
||||
extern long lookup(const char *name);
|
||||
extern void prepareScene(void);
|
||||
extern void presentScene(void);
|
||||
|
|
|
@ -26,8 +26,6 @@ void initWorldTest(char *worldId)
|
|||
|
||||
saveGame();
|
||||
|
||||
createScreenshotFolder();
|
||||
|
||||
if (worldId != NULL)
|
||||
{
|
||||
STRNCPY(game.worldId, worldId, MAX_NAME_LENGTH);
|
||||
|
|
|
@ -20,7 +20,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|||
|
||||
#include "../common.h"
|
||||
|
||||
extern void createScreenshotFolder(void);
|
||||
extern void initHub(void);
|
||||
extern void initWorld(void);
|
||||
extern void loadGame(void);
|
||||
|
|
Loading…
Reference in New Issue