Some random patches

spacy51
Senior Member
Posts: 371
Joined: Tue Mar 18, 2008 4:59 pm

Some random patches

Post by spacy51 »

Of course I have no objections.

mudlord
Senior Member
Posts: 306
Joined: Sun Feb 08, 2009 7:16 am

Some random patches

Post 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.

Squall Leonhart
Posting Freak
Posts: 1219
Joined: Tue Mar 18, 2008 9:21 am

Some random patches

Post 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.

spacy51
Senior Member
Posts: 371
Joined: Tue Mar 18, 2008 4:59 pm

Some random patches

Post 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.

Last edited by spacy51 on Thu Oct 16, 2008 7:40 am, edited 1 time in total.
chrono
Junior Member
Posts: 32
Joined: Tue Mar 18, 2008 9:23 pm

Some random patches

Post by chrono »

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

slacker
Junior Member
Posts: 22
Joined: Wed Jul 09, 2008 5:31 am

Some random patches

Post 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

spacy51
Senior Member
Posts: 371
Joined: Tue Mar 18, 2008 4:59 pm

Some random patches

Post by spacy51 »

It's new file. [img]<fileStore.core_Emoticons>/emoticons/smile.png[/img]/emoticons/[email protected] 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.

chrono
Junior Member
Posts: 32
Joined: Tue Mar 18, 2008 9:23 pm

Some random patches

Post 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

Last edited by chrono on Thu Oct 16, 2008 9:18 am, edited 1 time in total.
spacy51
Senior Member
Posts: 371
Joined: Tue Mar 18, 2008 4:59 pm

Some random patches

Post 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

Last edited by spacy51 on Thu Oct 16, 2008 10:17 am, edited 1 time in total.
chrono
Junior Member
Posts: 32
Joined: Tue Mar 18, 2008 9:23 pm

Some random patches

Post by chrono »

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

Last edited by chrono on Thu Oct 16, 2008 10:50 am, edited 1 time in total.
Post Reply