-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #71 from savaughn/main-menu-clean-up
Main menu clean up
- Loading branch information
Showing
6 changed files
with
249 additions
and
173 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 |
---|---|---|
|
@@ -19,4 +19,6 @@ obj/ | |
*.DS_Store | ||
src/pokeromtrader | ||
|
||
tests/* | ||
|
||
settings.json |
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 |
---|---|---|
|
@@ -103,6 +103,7 @@ enum E_LOG_MESSAGE_TYPE | |
}; | ||
|
||
enum textures { | ||
T_NONE = -1, | ||
T_EVOLVE, | ||
T_LOGO, | ||
T_QUIT, | ||
|
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,11 +1,18 @@ | ||
#include <string.h> | ||
#include "chelper.h" | ||
|
||
void set_default_value_string(const char *eval_str, const char *default_value, char *out_str) { | ||
if (eval_str == NULL) { | ||
// If eval_str is NULL, set out_str to the default_value | ||
// Default value is too big for the output buffer | ||
if (default_value != NULL && strlen(default_value) + 1 > sizeof(out_str)) { | ||
return; | ||
} | ||
strcpy(out_str, default_value); | ||
} else { | ||
// Otherwise, copy eval_str to out_str | ||
if (strlen(eval_str) + 1 >sizeof(out_str)) { | ||
return; | ||
} | ||
strcpy(out_str, eval_str); | ||
} | ||
} |
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
Oops, something went wrong.