aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/psp/psp_main.cpp
diff options
context:
space:
mode:
authorYotam Barnoy2010-07-18 07:03:14 +0000
committerYotam Barnoy2010-07-18 07:03:14 +0000
commit30d751734321cc97bd6591af5531ebc5e5f120a4 (patch)
tree2c1d826e930a0e3ff5120f45c889b576c167dcdf /backends/platform/psp/psp_main.cpp
parent844a332f8de4ab74ec1c739c2ab6f41e8d957d53 (diff)
downloadscummvm-rg350-30d751734321cc97bd6591af5531ebc5e5f120a4.tar.gz
scummvm-rg350-30d751734321cc97bd6591af5531ebc5e5f120a4.tar.bz2
scummvm-rg350-30d751734321cc97bd6591af5531ebc5e5f120a4.zip
PSP: switched to using my memcpy
svn-id: r50982
Diffstat (limited to 'backends/platform/psp/psp_main.cpp')
-rw-r--r--backends/platform/psp/psp_main.cpp13
1 files changed, 6 insertions, 7 deletions
diff --git a/backends/platform/psp/psp_main.cpp b/backends/platform/psp/psp_main.cpp
index b84702115f..dba9a8fc2b 100644
--- a/backends/platform/psp/psp_main.cpp
+++ b/backends/platform/psp/psp_main.cpp
@@ -44,15 +44,13 @@
#include "backends/plugins/psp/psp-provider.h"
#include "backends/platform/psp/psppixelformat.h"
#include "backends/platform/psp/osys_psp.h"
-#include "backends/platform/psp/tests.h"
+#include "backends/platform/psp/tests.h" /* for unit/speed tests */
#include "backends/platform/psp/trace.h"
#ifdef ENABLE_PROFILING
#include <pspprof.h>
#endif
-#define ENABLE_TESTS /* to enable tests of PSP architecture */
-
/**
* Define the module info section
*
@@ -156,7 +154,7 @@ int SetupCallbacks(void) {
#undef main
int main(void) {
//change clock rate to 333mhz
- scePowerSetClockFrequency(222, 222, 111);
+ scePowerSetClockFrequency(333, 333, 166);
PowerManager::instance(); // Setup power manager
@@ -172,10 +170,11 @@ int main(void) {
PluginManager::instance().addPluginProvider(new PSPPluginProvider());
#endif
-#ifdef ENABLE_TESTS
+/* unit/speed tests */
+#if defined (PSP_ENABLE_UNIT_TESTS) || defined (PSP_ENABLE_SPEED_TESTS)
PSP_INFO_PRINT("running tests\n");
- tests();
- sceKernelSleepThread();
+ psp_tests();
+ sceKernelSleepThread(); // that's it. That's all we're doing
#endif
int res = scummvm_main(argc, argv);