Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 156677 Details for
Bug 226447
ebuild for Goldberg's EyeToy Clone MyToy-SE
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
games-arcade/mytoy-se/files/mytoy-se-1.0.0.diff
mytoy-se-1.0.0.diff (text/plain), 4.95 KB, created by
Account removed
on 2008-06-13 22:17:24 UTC
(
hide
)
Description:
games-arcade/mytoy-se/files/mytoy-se-1.0.0.diff
Filename:
MIME Type:
Creator:
Account removed
Created:
2008-06-13 22:17:24 UTC
Size:
4.95 KB
patch
obsolete
>diff -Naur mytoy-se-1.0.0/ccore.cpp mytoy-se-1.0.0-homedir/ccore.cpp >--- mytoy-se-1.0.0/ccore.cpp 2008-06-13 18:48:43.000000000 +0200 >+++ mytoy-se-1.0.0-homedir/ccore.cpp 2008-06-13 23:35:58.000000000 +0200 >@@ -591,7 +591,11 @@ > break; > > case SDLK_s: >- ScreenShot("screenshots/TestMode", ++screenshot, 0, 0, GL_SCREEN_WIDTH,GL_SCREEN_HEIGHT); >+ char cfg_path[300]; >+ sprintf(cfg_path, "%s/.mytoyse", getenv("HOME")); >+ mkdir(cfg_path, 0755); >+ sprintf(cfg_path, "%s/.mytoyse/TestMode", getenv("HOME")); >+ ScreenShot(cfg_path, ++screenshot, 0, 0, GL_SCREEN_WIDTH,GL_SCREEN_HEIGHT); > break; > default: ; > } >diff -Naur mytoy-se-1.0.0/ccrazy.cpp mytoy-se-1.0.0-homedir/ccrazy.cpp >--- mytoy-se-1.0.0/ccrazy.cpp 2008-06-13 18:59:26.000000000 +0200 >+++ mytoy-se-1.0.0-homedir/ccrazy.cpp 2008-06-13 23:37:20.000000000 +0200 >@@ -131,7 +131,11 @@ > break; > > case SDLK_s: >- CORE->ScreenShot( "screenshots/Crazy",++scrshotnr,0,0,GL_SCREEN_WIDTH,GL_SCREEN_HEIGHT); >+ char cfg_path[300]; >+ sprintf(cfg_path, "%s/.mytoyse", getenv("HOME")); >+ mkdir(cfg_path, 0755); >+ sprintf(cfg_path, "%s/.mytoyse/Crazy", getenv("HOME")); >+ CORE->ScreenShot( cfg_path,++scrshotnr,0,0,GL_SCREEN_WIDTH,GL_SCREEN_HEIGHT); > break; > > case SDLK_ESCAPE: >@@ -1427,8 +1431,12 @@ > switch ( event.key.keysym.sym ) { > > // screenshot >- case SDLK_s: >- CORE->ScreenShot("screenshots/Crazy",++scrshotnr,0,0,GL_SCREEN_WIDTH,GL_SCREEN_HEIGHT); >+ case SDLK_s: >+ char cfg_path[300]; >+ sprintf(cfg_path, "%s/.mytoyse", getenv("HOME")); >+ mkdir(cfg_path, 0755); >+ sprintf(cfg_path, "%s/.mytoyse/Crazy", getenv("HOME")); >+ CORE->ScreenShot(cfg_path,++scrshotnr,0,0,GL_SCREEN_WIDTH,GL_SCREEN_HEIGHT); > break; > default: ; > } // switch >diff -Naur mytoy-se-1.0.0/cdogcatcher.cpp mytoy-se-1.0.0-homedir/cdogcatcher.cpp >--- mytoy-se-1.0.0/cdogcatcher.cpp 2008-06-13 19:04:29.000000000 +0200 >+++ mytoy-se-1.0.0-homedir/cdogcatcher.cpp 2008-06-13 23:36:23.000000000 +0200 >@@ -115,7 +115,11 @@ > break; > > case SDLK_s: >- CORE->ScreenShot( "screenshots/Dog",++scrshotnr,0,0,GL_SCREEN_WIDTH,GL_SCREEN_HEIGHT); >+ char cfg_path[300]; >+ sprintf(cfg_path, "%s/.mytoyse", getenv("HOME")); >+ mkdir(cfg_path, 0755); >+ sprintf(cfg_path, "%s/.mytoyse/Dog", getenv("HOME")); >+ CORE->ScreenShot( cfg_path,++scrshotnr,0,0,GL_SCREEN_WIDTH,GL_SCREEN_HEIGHT); > break; > > case SDLK_ESCAPE: >diff -Naur mytoy-se-1.0.0/cmenu.cpp mytoy-se-1.0.0-homedir/cmenu.cpp >--- mytoy-se-1.0.0/cmenu.cpp 2005-02-21 21:16:18.000000000 +0100 >+++ mytoy-se-1.0.0-homedir/cmenu.cpp 2008-06-13 23:34:46.000000000 +0200 >@@ -131,7 +131,11 @@ > > // képernyõ mentése > case SDLK_s: >- CORE->ScreenShot( "screenshots/Menu",scrshotnr++,0,0,GL_SCREEN_WIDTH,GL_SCREEN_HEIGHT); >+ char cfg_path[300]; >+ sprintf(cfg_path, "%s/.mytoyse", getenv("HOME")); >+ mkdir(cfg_path, 0755); >+ sprintf(cfg_path, "%s/.mytoyse/Menu", getenv("HOME")); >+ CORE->ScreenShot( cfg_path,scrshotnr++,0,0,GL_SCREEN_WIDTH,GL_SCREEN_HEIGHT); > break; > > default: >diff -Naur mytoy-se-1.0.0/cmeteorfly.cpp mytoy-se-1.0.0-homedir/cmeteorfly.cpp >--- mytoy-se-1.0.0/cmeteorfly.cpp 2008-06-13 19:02:00.000000000 +0200 >+++ mytoy-se-1.0.0-homedir/cmeteorfly.cpp 2008-06-13 23:36:39.000000000 +0200 >@@ -130,7 +130,11 @@ > break; > > case SDLK_s: >- CORE->ScreenShot( "screenshots/Meteor",++scrshotnr,0,0,GL_SCREEN_WIDTH,GL_SCREEN_HEIGHT); >+ char cfg_path[300]; >+ sprintf(cfg_path, "%s/.mytoyse", getenv("HOME")); >+ mkdir(cfg_path, 0755); >+ sprintf(cfg_path, "%s/.mytoyse/Meteor", getenv("HOME")); >+ CORE->ScreenShot( cfg_path,++scrshotnr,0,0,GL_SCREEN_WIDTH,GL_SCREEN_HEIGHT); > break; > > case SDLK_ESCAPE: >diff -Naur mytoy-se-1.0.0/coreheaders.h mytoy-se-1.0.0-homedir/coreheaders.h >--- mytoy-se-1.0.0/coreheaders.h 2008-06-13 19:17:59.000000000 +0200 >+++ mytoy-se-1.0.0-homedir/coreheaders.h 2008-06-13 23:42:51.000000000 +0200 >@@ -32,6 +32,10 @@ > > */ > >+#include <stdlib.h> >+#include <fcntl.h> >+#include <unistd.h> >+ > #ifdef _WIN32 > #include <windows.h> > #endif >diff -Naur mytoy-se-1.0.0/cwindow.cpp mytoy-se-1.0.0-homedir/cwindow.cpp >--- mytoy-se-1.0.0/cwindow.cpp 2008-06-13 19:02:19.000000000 +0200 >+++ mytoy-se-1.0.0-homedir/cwindow.cpp 2008-06-13 23:37:08.000000000 +0200 >@@ -91,7 +91,11 @@ > break; > > case SDLK_s: >- CORE->ScreenShot( "screenshots/Window",++scrshotnr,0,0,GL_SCREEN_WIDTH,GL_SCREEN_HEIGHT); >+ char cfg_path[300]; >+ sprintf(cfg_path, "%s/.mytoyse", getenv("HOME")); >+ mkdir(cfg_path, 0755); >+ sprintf(cfg_path, "%s/.mytoyse/Window", getenv("HOME")); >+ CORE->ScreenShot( cfg_path,++scrshotnr,0,0,GL_SCREEN_WIDTH,GL_SCREEN_HEIGHT); > break; > > case SDLK_ESCAPE:
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 226447
:
156675
| 156677 |
186326