mirror of
https://github.com/LNH-team/pico-launcher.git
synced 2026-06-02 09:06:54 +02:00
Initial commit
This commit is contained in:
13
arm9/source/gui/palette/DirectPalette.cpp
Normal file
13
arm9/source/gui/palette/DirectPalette.cpp
Normal file
@@ -0,0 +1,13 @@
|
||||
#include "common.h"
|
||||
#include "DirectPalette.h"
|
||||
|
||||
u32 DirectPalette::GetHashCode() const
|
||||
{
|
||||
u32 hashcode = 1430287;
|
||||
#pragma GCC unroll 8
|
||||
for (int i = 0; i < 8; i++)
|
||||
{
|
||||
hashcode = hashcode * 7302013 + ((u32*)_colors)[i];
|
||||
}
|
||||
return hashcode;
|
||||
}
|
||||
Reference in New Issue
Block a user