Skip to content

Instantly share code, notes, and snippets.

@marijnvdwerf
Created December 28, 2016 19:47
Show Gist options
  • Select an option

  • Save marijnvdwerf/a168282d8d2152a7265be3c6d67b5c93 to your computer and use it in GitHub Desktop.

Select an option

Save marijnvdwerf/a168282d8d2152a7265be3c6d67b5c93 to your computer and use it in GitHub Desktop.

${CPP} -DVERSION=RUBY -DLOCALE=en -DREVISION=0

#define UNITS_METRIC 0
#define UNITS_IMPERIAL 1

#if !defined(LOCALE) || LOCALE == "en"
#define BUILD_LANGUAGE (LANGUAGE_ENGLISH)
#define BUILD_UNITS UNITS_IMPERIAL


#if REVISION < 1
#define BUILD_FIXSAVEFAILED 0
#else
#define BUILD_FIXSAVEFAILED 1
#endif

#if REVISION < 2
#define BUILD_FIXBERRY 0
#else
#define BUILD_FIXBERRY 1
#endif

#elif LOCALE == "de"
#define BUILD_LANGUAGE (LANGUAGE_GERMAN)
#define BUILD_UNITS UNITS_IMPERIAL

#define BUILD_FIXSAVEFAILED 1
#if REVISION < 1
#define BUILD_FIXBERRYGLITCH 0
#else
#define BUILD_FIXBERRYGLITCH 1
#endif

#else
#error "Unsupported locale specified"
#endif
#if BUILD_FIXSAVEFAILED
#define WTOP (10)
#else
#define WTOP (12)
#endif


void DrawSaveFailedScreen(void)
{
    MenuDrawTextWindow(1, WTOP, 28, 19);
    MenuPrint(gSystemText_BackupDamagedGameContinue, 2, WTOP + 1);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment