forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

SDK update

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
Heimdall



Joined: 10 Nov 2005
Posts: 259
Location: Netherlands

PostPosted: Thu Aug 28, 2008 6:01 pm    Post subject: SDK update Reply with quote

Hi guys, since the toolchain has been updated i propose some extra changes:

Code:
Index: aminclude.am
===================================================================
--- aminclude.am   (revision 2424)
+++ aminclude.am   (working copy)
@@ -167,7 +167,7 @@
 doxygen-doc: doxygen-run $(DX_PS_GOAL) $(DX_PDF_GOAL)
 
 @DX_DOCDIR@/@PACKAGE@.tag: $(DX_CONFIG) $(pkginclude_HEADERS)
-   rm -rf @DX_DOCDIR@
+#   rm -rf @DX_DOCDIR@
    $(DX_ENV) $(DX_DOXYGEN) $(srcdir)/$(DX_CONFIG)
 
 DX_CLEANFILES = \
Index: src/debug/scr_printf.c
===================================================================
--- src/debug/scr_printf.c   (revision 2424)
+++ src/debug/scr_printf.c   (working copy)
@@ -356,6 +356,9 @@
       c = buff[i];
       switch (c)
       {
+         case '\r':
+                  X = 0;
+                  break;
          case '\n':
                   X = 0;
                   Y ++;
Index: src/prof/prof.c
===================================================================
--- src/prof/prof.c   (revision 2424)
+++ src/prof/prof.c   (working copy)
@@ -79,7 +79,8 @@
 extern int _etext;
 
 /* forward declarations */
-void gprof_cleanup();
+void gprof_cleanup(void);
+void __mcount(unsigned int, unsigned int);
 static SceUInt timer_handler(SceUID uid, SceKernelSysClock *c1, SceKernelSysClock *c2, void *common);
 
 /** Initializes pg library
Index: tools/psp-config.c
===================================================================
--- tools/psp-config.c   (revision 2424)
+++ tools/psp-config.c   (working copy)
@@ -1,3 +1,6 @@
+#if defined(__MINGW32__) && !defined(__CYGWIN__)
+#include <windows.h>
+#endif
 #include <stdio.h>
 #include <getopt.h>
 #include <string.h>
@@ -259,9 +262,24 @@
 
 int main(int argc, char **argv)
 {
+#if defined(__MINGW32__) && !defined(__CYGWIN__)
+   // this will store the fully-qualified path
+   char psp_config_path[MAX_PATH] = "";
+
+   // fetch the path of the executable
+   if(GetModuleFileName(0, psp_config_path, sizeof(psp_config_path) - 1) == 0)
+   {
+      // fall back
+      strcpy(psp_config_path, argv[0]);
+   }
+#endif
    if(process_args(argc, argv))
    {
+#if defined(__MINGW32__) && !defined(__CYGWIN__)
+      print_path(psp_config_path);
+#else
       print_path(argv[0]);
+#endif
    }
    else
    {


The first change is because every time i generate the documentation, my local SVN gets screwed up because some .svn directory is removed and it shouldn't.

The second (src/debug/scr_printf.c) is just cosmetic. When you use the debug printf function and you write something like: "key: X\r" it prints a funny character in the place of "\r" and there is no carriage return. This patch will allow the carriage to return so you do not need to set the position back to 0,0 to overwrite the previous string.

The 3rd (src/prof/prof.c) is just to reduce some warnings about missing declarations.

The 4th (tools/psp-config.c) is mingw specific so maybe optional for you guys. It is the fix for the pspdev path to work under windows (not cygwin).
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Raphael



Joined: 17 Jan 2006
Posts: 646
Location: Germany

PostPosted: Thu Aug 28, 2008 9:34 pm    Post subject: Reply with quote

Quote:

Sending aminclude.am
Sending src/debug/scr_printf.c
Sending src/prof/prof.c
Sending tools/psp-config.c
Transmitting file data ....
Committed revision 2429.

Thanks :)
_________________
<Don't push the river, it flows.>
http://wordpress.fx-world.org - my devblog
http://wiki.fx-world.org - VFPU documentation wiki

Alexander Berl
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group