* Add newlines at end of files. This is for better portability.
* Fix a direct reference to g++ in the makefile
This commit is contained in:
jean.chalard
2010-02-02 10:19:43 +00:00
parent 8f56dad259
commit 5a2bae75d5
27 changed files with 68 additions and 68 deletions

View File

@@ -121,6 +121,6 @@ clean:
endif
Makefile.linux:
g++ -o /dev/null src/testfeatures.c -L$(LIBDIR) -lfmod-3.75 > /dev/null 2>&1 ; if [ "0" = "$$?" ]; then echo 'FMOD=-DWITH_FMOD'; else echo 'FMOD=-DWITHOUT_FMOD'; fi > $@
$(CXX) -o /dev/null src/testfeatures.c -L$(LIBDIR) -lfmod-3.75 > /dev/null 2>&1 ; if [ "0" = "$$?" ]; then echo 'FMOD=-DWITH_FMOD'; else echo 'FMOD=-DWITHOUT_FMOD'; fi > $@
-include Makefile.$(TARGET_ARCHITECTURE)

View File

@@ -99,7 +99,7 @@ Makefile.psp:
echo > Makefile.psp
Makefile.linux:
g++ -o /dev/null src/testfeatures.c $(LIBDIR) -lfmod-3.75 > /dev/null 2>&1 ; if [ "0" = "$$?" ]; then echo 'FMOD=-lfmod-3.75'; else echo 'FMOD='; fi > $@
$(CXX) -o /dev/null src/testfeatures.c $(LIBDIR) -lfmod-3.75 > /dev/null 2>&1 ; if [ "0" = "$$?" ]; then echo 'FMOD=-lfmod-3.75'; else echo 'FMOD='; fi > $@
-include $(DEPS)
-include Makefile.$(TARGET_ARCHITECTURE)

View File

@@ -79,4 +79,4 @@ class CardPrimitive {
};
#endif
#endif

View File

@@ -46,4 +46,4 @@ public:
void Render();
};
#endif
#endif

View File

@@ -24,4 +24,4 @@ private:
map<string,DeckMetaData *>values;
};
#endif
#endif

View File

@@ -51,4 +51,4 @@ public:
virtual SacrificeCost * clone() const;
};
#endif
#endif

View File

@@ -235,4 +235,4 @@ private:
extern GameSettings options;
#endif
#endif

View File

@@ -39,4 +39,4 @@ class GameStateAwards: public GameState, public JGuiListener
virtual void ButtonPressed(int controllerId, int controlId);
};
#endif
#endif

View File

@@ -37,4 +37,4 @@ private:
};
#endif
#endif

View File

@@ -30,4 +30,4 @@ public:
bool mReversed;
};
#endif
#endif

View File

@@ -40,4 +40,4 @@ public:
~ReplacementEffects();
};
#endif
#endif

View File

@@ -71,4 +71,4 @@ public:
static MTGCardInstance * getCardByMTGId(int mtgid);
};
#endif
#endif

View File

@@ -37,4 +37,4 @@ public:
string _(string toTranslate);
#endif
#endif

View File

@@ -118,4 +118,4 @@ protected:
JSample * sample;
};
#endif
#endif

View File

@@ -207,4 +207,4 @@ private:
};
extern WResourceManager resources;
#endif
#endif

View File

@@ -92,4 +92,4 @@ AttackerDamaged::AttackerDamaged(MTGCardInstance* card, const Pos& ref, bool sho
AttackerDamaged::~AttackerDamaged(){
for (vector<DefenserDamaged*>::iterator q = blockers.begin(); q != blockers.end(); ++q)
delete(*q);
}
}

View File

@@ -1,45 +1,45 @@
#include "../include/DeckMetaData.h"
#include "../include/MTGDeck.h"
#include "../include/config.h"
//Possible improvements:
//Merge this with DeckStats
//Have this class handle all the Meta Data rather than relying on MTGDeck. Then MTGDeck would have a MetaData object...
DeckMetaDataList * DeckMetaDataList::decksMetaData = NEW DeckMetaDataList();
#include "../include/DeckMetaData.h"
#include "../include/MTGDeck.h"
#include "../include/config.h"
//Possible improvements:
//Merge this with DeckStats
//Have this class handle all the Meta Data rather than relying on MTGDeck. Then MTGDeck would have a MetaData object...
DeckMetaDataList * DeckMetaDataList::decksMetaData = NEW DeckMetaDataList();
DeckMetaData::DeckMetaData(string filename){
load(filename);
}
void DeckMetaData::load(string filename){
MTGDeck * mtgd = NEW MTGDeck(filename.c_str(),NULL,1);
name = mtgd->meta_name;
desc = mtgd->meta_desc;
delete(mtgd);
}
DeckMetaDataList::~DeckMetaDataList(){
for(map<string,DeckMetaData *>::iterator it = values.begin(); it != values.end(); ++it){
SAFE_DELETE(it->second);
}
values.clear();
}
void DeckMetaDataList::invalidate(string filename){
map<string,DeckMetaData *>::iterator it = values.find(filename);
if (it !=values.end()){
SAFE_DELETE(it->second);
values.erase(it);
}
}
DeckMetaData * DeckMetaDataList::get(string filename){
map<string,DeckMetaData *>::iterator it = values.find(filename);
if (it ==values.end()){
if (fileExists(filename.c_str())) {
values[filename] = NEW DeckMetaData(filename);
}
}
return values[filename]; //this creates a NULL entry if the file does not exist
}
void DeckMetaData::load(string filename){
MTGDeck * mtgd = NEW MTGDeck(filename.c_str(),NULL,1);
name = mtgd->meta_name;
desc = mtgd->meta_desc;
delete(mtgd);
}
DeckMetaDataList::~DeckMetaDataList(){
for(map<string,DeckMetaData *>::iterator it = values.begin(); it != values.end(); ++it){
SAFE_DELETE(it->second);
}
values.clear();
}
void DeckMetaDataList::invalidate(string filename){
map<string,DeckMetaData *>::iterator it = values.find(filename);
if (it !=values.end()){
SAFE_DELETE(it->second);
values.erase(it);
}
}
DeckMetaData * DeckMetaDataList::get(string filename){
map<string,DeckMetaData *>::iterator it = values.find(filename);
if (it ==values.end()){
if (fileExists(filename.c_str())) {
values[filename] = NEW DeckMetaData(filename);
}
}
return values[filename]; //this creates a NULL entry if the file does not exist
}

View File

@@ -394,4 +394,4 @@ void GameApp::DoTransition(int trans, int tostate, float dur, bool animonly){
void GameApp::DoAnimation(int trans, float dur){
DoTransition(trans,GAME_STATE_NONE,dur,true);
}
}

View File

@@ -44,4 +44,4 @@ int GameState::fillDeckMenu(SimpleMenu * _menu, string path, string smallDeckPre
}
}
return nbDecks;
}
}

View File

@@ -349,4 +349,4 @@ void GameStateAwards::ButtonPressed(int controllerId, int controlId)
mState = STATE_DETAILS;
}
}
}
}

View File

@@ -235,4 +235,4 @@ void GameStateOptions::ButtonPressed(int controllerId, int controlId)
}
else
optionsTabs->ButtonPressed(controllerId, controlId);
};
};

View File

@@ -256,4 +256,4 @@ void GameStateShop::ButtonPressed(int controllerId, int controlId)
}
SAFE_DELETE(menu);
}
}
}

View File

@@ -53,4 +53,4 @@ void TransitionFade::Render(){
TransitionFade::TransitionFade(GameApp* p, GameState* f, GameState* t, float dur, bool reversed):
TransitionBase(p, f,t,dur) {
mReversed = reversed;
};
};

View File

@@ -72,4 +72,4 @@ char * MTGCard::getImageName(){
void MTGCard::setPrimitive(CardPrimitive * cp){
data = cp;
}
}

View File

@@ -1632,4 +1632,4 @@ bool WSrcMTGSet::thisCard(int mtgid){
}
}
return false;
}
}

View File

@@ -551,4 +551,4 @@ bool ShopItems::CheckUserInput(u32 key){
return dialog->CheckUserInput(key);
return JGuiController::CheckUserInput(key);
}
}

View File

@@ -184,4 +184,4 @@ void SimpleMenu::destroy(){
SAFE_DELETE(SimpleMenu::jewel);
SAFE_DELETE(SimpleMenu::stars);
SAFE_DELETE(SimpleMenu::jewelTex);
}
}