mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Add VFS registration during unittest
This commit is contained in:
parent
0619572f97
commit
c49c45a106
1 changed files with 5 additions and 0 deletions
|
@ -58,6 +58,8 @@
|
|||
#include "Common/CPUDetect.h"
|
||||
#include "Common/Log.h"
|
||||
#include "Core/Config.h"
|
||||
#include "Common/File/VFS/VFS.h"
|
||||
#include "Common/File/VFS/DirectoryReader.h"
|
||||
#include "Core/FileSystems/ISOFileSystem.h"
|
||||
#include "Core/MemMap.h"
|
||||
#include "Core/MIPS/MIPSVFPUUtils.h"
|
||||
|
@ -352,6 +354,9 @@ bool TestTinySet() {
|
|||
|
||||
bool TestVFPUSinCos() {
|
||||
float sine, cosine;
|
||||
// Needed for VFPU tables.
|
||||
// There might be a better place to invoke it, but whatever.
|
||||
g_VFS.Register("", new DirectoryReader(Path("assets")));
|
||||
InitVFPU();
|
||||
vfpu_sincos(0.0f, sine, cosine);
|
||||
EXPECT_EQ_FLOAT(sine, 0.0f);
|
||||
|
|
Loading…
Add table
Reference in a new issue