- boosters in shop 100 cards -> 80 cards
- 2 new cards in SHM
- Added Ram checking methods for the PSP
This commit is contained in:
wagic.the.homebrew@gmail.com
2009-04-30 12:10:09 +00:00
parent e0e21fa2a3
commit 8b008a4bda
10 changed files with 168 additions and 42 deletions

View File

@@ -12,7 +12,7 @@
#define STAGE_SHOP_MENU 3
#define STAGE_SHOP_SHOP 4
#define SHOP_BOOSTERS 3
class GameStateShop: public GameState, public JGuiListener
{

View File

@@ -12,6 +12,8 @@
#include <string>
using std::string;
#define SHOP_BOOSTERS 3
class ShopItem:public JGuiObject{
private:
bool mHasFocus;
@@ -51,7 +53,7 @@ class ShopItems:public JGuiController,public JGuiListener{
MTGAllCards * collection;
SimpleMenu * dialog;
int showPriceDialog;
int setIds[2];;
int setIds[SHOP_BOOSTERS];
MTGCardInstance * displayCards[100];
CardDisplay * display;
void safeDeleteDisplay();

View File

@@ -14,6 +14,9 @@
#include <psputility.h>
#include <pspgu.h>
#include <psprtc.h>
#include <psptypes.h>
#include <malloc.h>
#endif
@@ -38,5 +41,22 @@ int fileExists(const char * filename);
void dumpStack();
#endif
/* RAM simple check functions header */
// *** DEFINES ***
#if defined (WIN32) || defined (LINUX)
#define RAM_BLOCK (100 * 1024 * 1024)
#else
#define RAM_BLOCK (1024 * 1024)
#endif
// *** FUNCTIONS DECLARATIONS ***
u32 ramAvailableLineareMax (void);
u32 ramAvailable (void);
#endif