Page 2 of 3

Some random patches

Posted: Sun Oct 05, 2008 5:26 am
by spacy51

Of course I have no objections.


Some random patches

Posted: Sun Oct 05, 2008 8:17 pm
by mudlord

Okay,

 

anyone chatted with Nach yet about UPS support with chrono's patches....We kinda need it urgently since Tomato has almost finished his translation.


Some random patches

Posted: Thu Oct 09, 2008 6:45 pm
by Squall Leonhart

I'll download the latest svn, and apply the ups patch, then gzip it and send it to spacy for compiling, then get tomato to send me a current ups file so i can check it out.


Some random patches

Posted: Thu Oct 16, 2008 7:40 am
by spacy51

I have problems trying to apply the patch for UPS (probably with the other patch files as well).

 

I downloaded a windows verison of the GNU "patch" program.

I cd to trunk.

I run patch -p1 0001--CORE-Add-UPS-PPF-patch-support.patch

 

Nothing happens, but I can input something.

 

 

 

I looked a bit around in the patch file:

Code: Select all

new file mode 100644
index 0000000..2c9c270
--- /dev/null
+++ b/src/Patch.cpp
@@ -0,0 +1,464 @@
+// VisualBoyAdvance - Nintendo Gameboy/GameboyAdvance (TM) emulator.
+// Copyright (C) 1999-2003 Forgotten

 

Is it correct to have /dev/null as an old file or something like that? I don't have much knowledge of diff/patch files, however, it just seems stupid.


Some random patches

Posted: Thu Oct 16, 2008 8:05 am
by chrono

It's new file. [img]<fileStore.core_Emoticons>/emoticons/smile.png[/img]/emoticons/smile@2x.png 2x" width="20" height="20" />


Some random patches

Posted: Thu Oct 16, 2008 8:35 am
by slacker

here's a random patch moves SDL build to XDG specs (using .config/vbam instead of .vbam)

 

since i saw gtk build went to this i did up a little patch. prob not perfect but seems to work


Some random patches

Posted: Thu Oct 16, 2008 8:44 am
by spacy51

It's new file. [img]<fileStore.core_Emoticons>/emoticons/smile.png[/img]/emoticons/smile@2x.png 2x" width="20" height="20" />

 

Hm, same problem, nothing happens. What command would I use to apply the patch if I was on Linux? My directory structure is the same as on SVN.


Some random patches

Posted: Thu Oct 16, 2008 9:06 am
by chrono

Copy *.patch into trunk/ and

Code: Select all

patch -p 1 < 0001--CORE-Add-UPS-PPF-patch-support.patch
patch -p 1 < 0002--SDL-Add-UPS-PPF-patch-support.patch
patch -p 1 < 0003--SDL-Fix-memory-leak.patch

Patch for SVN


Some random patches

Posted: Thu Oct 16, 2008 9:45 am
by spacy51

Ah, thank you. I misunderstood the syntax.

 

Unfortunately, now patch.exe crashes -_-"

 

"Assertion failed: hunk, file ../patch-2.5.9-src/patch.c, line 354"

 

 

I'll see if I can get another version.

 

Btw, it would be really great if you could create an account on SourceForge so we can directly grant you access to SVN. Would save some work messing around with patch files.

 

 

EDIT:

Using TortoiseMerge, patch applied fine. Commited. Now I have to make sure the MFC builds works with it.

 

 

EDIT2:

I added the following code to make it compile with MSVC:

#ifdef _MSC_VER

#define fseeko64 _fseeki64

#define ftello64 _ftelli64

typedef __int64 __off64_t; // _ftelli64 returns __int64

#endif


Some random patches

Posted: Thu Oct 16, 2008 10:45 am
by chrono

PPF/UPS patches for game Boktai - The Sun is in Your Hand (CRC: 9686C36B)