diff options
author | aap <aap@papnet.eu> | 2019-06-25 07:22:27 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-25 07:22:27 +0200 |
commit | b50440a6f0e9e493f7e92e87b143be47dd98681a (patch) | |
tree | a7c8c8d910cfd8d6b9b90c2d49dedff3454fa495 /src/main.cpp | |
parent | Merge pull request #43 from erorcun/erorcun (diff) | |
parent | Initial commit for Frontend. (diff) | |
download | re3-b50440a6f0e9e493f7e92e87b143be47dd98681a.tar re3-b50440a6f0e9e493f7e92e87b143be47dd98681a.tar.gz re3-b50440a6f0e9e493f7e92e87b143be47dd98681a.tar.bz2 re3-b50440a6f0e9e493f7e92e87b143be47dd98681a.tar.lz re3-b50440a6f0e9e493f7e92e87b143be47dd98681a.tar.xz re3-b50440a6f0e9e493f7e92e87b143be47dd98681a.tar.zst re3-b50440a6f0e9e493f7e92e87b143be47dd98681a.zip |
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp index f9ede02d..0dadc131 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -85,6 +85,7 @@ extern void (*DebugMenuProcess)(void); extern void (*DebugMenuRender)(void); void DebugMenuInit(void); +void PrintGameVersion(); RwRGBA gColourTop; @@ -154,6 +155,7 @@ Idle(void *arg) } RenderMenus(); + PrintGameVersion(); DoFade(); Render2dStuffAfterFade(); CCredits::Render(); @@ -186,6 +188,7 @@ FrontendIdle(void) DefinedState(); RenderMenus(); + PrintGameVersion(); DoFade(); Render2dStuffAfterFade(); CFont::DrawFonts(); @@ -772,6 +775,25 @@ AppEventHandler(RsEvent event, void *param) } } +void PrintGameVersion() +{ + CFont::SetPropOn(); + CFont::SetBackgroundOff(); + CFont::SetScale(SCREEN_SCALE_X(0.7f), SCREEN_SCALE_Y(0.5f)); + CFont::SetCentreOff(); + CFont::SetRightJustifyOff(); + CFont::SetBackGroundOnlyTextOff(); + CFont::SetFontStyle(FONT_BANK); + CFont::SetWrapx(SCREEN_WIDTH); + CFont::SetDropShadowPosition(0); + CFont::SetDropColor(CRGBA(0, 0, 0, 255)); + CFont::SetColor(CRGBA(235, 170, 50, 255)); + + strcpy(gString, "RE3"); + AsciiToUnicode(gString, gUString); + CFont::PrintString(SCREEN_SCALE_X(10.5f), SCREEN_SCALE_Y(8.0f), gUString); +} + STARTPATCHES InjectHook(0x48E480, Idle, PATCH_JUMP); InjectHook(0x48E700, FrontendIdle, PATCH_JUMP); |