Sophie

Sophie

distrib > Mageia > 8 > x86_64 > by-pkgid > 6f1ba67ba6339685c5cf62810f68187d > files > 4

brainparty-0.61-9.mga8.src.rpm

Index: brainparty/BPGame.cpp
===================================================================
--- brainparty/BPGame.cpp
+++ brainparty/BPGame.cpp	2013-08-10 13:43:27.404175466 +0200
@@ -1193,7 +1193,7 @@
 	SAFE_DELETE((*tex));
 	
 	// it's incredibly lazy to open and close the font each time - hurray!
-	TTF_Font* fnt = TTF_OpenFont("Content/freesans.ttf", size - 3); // NB: the -3 is here because the freesans.ttf font we're using is a big chunkier than the iPhone font
+	TTF_Font* fnt = TTF_OpenFont("/usr/share/games/brainparty/freesans.ttf", size - 3); // NB: the -3 is here because the freesans.ttf font we're using is a big chunkier than the iPhone font
 	
 	static SDL_Color white = { 255, 255, 255, 255 };
 	
@@ -2342,7 +2342,7 @@
 	}
 	
 	string* file = new string(name);
-	file->insert(0, "Content/");
+	file->insert(0, "/usr/share/games/brainparty/");
 	file->append(".ogg");
 	
 	Music = Mix_LoadMUS(file->c_str());
@@ -2369,7 +2369,7 @@
 
 Mix_Chunk* BPGame::LoadSound(const char* filename, const char* extension) {
 	string* file = new string(filename);
-	file->insert(0, "Content/");
+	file->insert(0, "/usr/share/games/brainparty/");
 	file->append(".wav");
 	
 	Mix_Chunk* retval = Mix_LoadWAV(file->c_str());
Index: brainparty/Texture.cpp
===================================================================
--- brainparty/Texture.cpp
+++ brainparty/Texture.cpp	2013-08-10 13:43:25.391919719 +0200
@@ -48,7 +48,7 @@
 
 Texture::Texture(const char* filename, float actualwidth, float actualheight) {
 	string file = filename;
-	file.insert(0, "Content/");
+	file.insert(0, "/usr/share/games/brainparty/");
 	file.append(".png");
 
 	SDL_Surface *surface = IMG_Load(file.c_str());
Index: brainparty/main.cpp
===================================================================
--- brainparty/main.cpp
+++ brainparty/main.cpp	2013-08-10 13:43:26.292034119 +0200
@@ -38,7 +38,7 @@
 	SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1);
 		
 	SDL_WM_SetCaption("Brain Party", "Brain Party");
-	SDL_WM_SetIcon(SDL_LoadBMP("Content/icon.bmp"), NULL);
+	SDL_WM_SetIcon(SDL_LoadBMP("/usr/share/games/brainparty/icon.bmp"), NULL);
 	
 	Mix_OpenAudio(44100, AUDIO_S16SYS, 2, 2048);
 	TTF_Init();
Index: brainparty/wordsmash.cpp
===================================================================
--- brainparty/wordsmash.cpp
+++ brainparty/wordsmash.cpp	2013-08-10 13:43:24.589817776 +0200
@@ -60,7 +60,7 @@
 	sfcLetters["y"] = TheGame->LoadBitmap("y", 44, 44);
 	sfcLetters["z"] = TheGame->LoadBitmap("z", 44, 44);
 	
-	Words = new WordList("Content/wordlist.txt");
+	Words = new WordList("/usr/share/games/brainparty/wordlist.txt");
 	
 	for (int j = 0; j < RowCount; ++j) {
 		vector<BPMiniGame_WordSmash_Letter*>* row = new vector<BPMiniGame_WordSmash_Letter*>();