Skip to content

Commit

Permalink
version spoofing part 5
Browse files Browse the repository at this point in the history
Signed-off-by: Fra <[email protected]>
  • Loading branch information
Alexyo21 authored Nov 20, 2023
1 parent fa28deb commit d86663c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions sysmodules/rosalina/source/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
#include "shell.h"
#include "task_runner.h"
#include "plugin.h"
#include "volume.h"
#include "config_template_ini.h"
#include "configExtra_ini.h"

Expand Down
8 changes: 4 additions & 4 deletions sysmodules/rosalina/source/menu.c
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ static void menuDraw(Menu *menu, u32 selected)

Result mcuInfoRes = menuUpdateMcuInfo();

svcGetSystemInfo(&out, 0x10000, 0);
svcGetSystemInfo(&out, 0x10000, 8);
version = (u32)out;

svcGetSystemInfo(&out, 0x10000, 1);
Expand All @@ -462,10 +462,10 @@ static void menuDraw(Menu *menu, u32 selected)
svcGetSystemInfo(&out, 0x10000, 0x200);
isRelease = (bool)out;

if(GET_VERSION_REVISION(version) == 0)
sprintf(versionString, "v%lu.%lu", GET_VERSION_MAJOR(version), GET_VERSION_MINOR(version));
if(GET_VERSION_REVISION1(version) == 0)
sprintf(versionString, "v%lu.%lu", GET_VERSION_MAJOR1(version), GET_VERSION_MINOR1(version));
else
sprintf(versionString, "v%lu.%lu.%lu", GET_VERSION_MAJOR(version), GET_VERSION_MINOR(version), GET_VERSION_REVISION(version));
sprintf(versionString, "v%lu.%lu.%lu", GET_VERSION_MAJOR1(version), GET_VERSION_MINOR1(version), GET_VERSION_REVISION1(version));

Draw_DrawString(10, 10, COLOR_TITLE, menu->title);
u32 numItems = menuCountItems(menu);
Expand Down

0 comments on commit d86663c

Please sign in to comment.