GBC cheats (GameShark) + compile fixes

This particular forum is archives, bug reports should be made at https://github.com/visualboyadvance-m/v ... e-m/issues


Post Reply
martinultima
Junior Member
Posts: 5
Joined: Sun Jul 20, 2008 6:02 pm

GBC cheats (GameShark) + compile fixes

Post by martinultima »

Currently running VBA-M (SDL version) as of 2008/07/20, plus a few patches. One of them is a functional fix -- I think I've already posted it here, but it's fairly small so I'll post it again -- and the other two are build fixes required on my machine.

 

I just checked out the current SVN (2008/08/03) and these still applied without any errors, so I'm submitting them again so they can be integrated "upstream".

 

All patches apply at -p0
.

 

vbam-gameboy-gameshark.diff.gz: Recognize GameShark codes (for original GameBoy/Color) passed with the --cheat
option. Probably should have also added GameGenie, but this was enough to get me through Zelda: Oracle of Seasons [img]<fileStore.core_Emoticons>/emoticons/smile.png[/img]/emoticons/smile@2x.png 2x" width="20" height="20" />

 

The other two patches are build fixes that I needed on my machine. They actually just comment out or delete the offending sections of CMakeLists.txt
-- I'm not familiar with cmake's syntax, so I took the path of least resistance here, but might at least be something so consider:

 

CMakeLists.txt.diff.gz: Build without GTK-mm support.

 

CMakeLists.txt.lirc.diff.gz: Build without LIRC support.

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

GBC cheats (GameShark) + compile fixes

Post by chrono »

Reworked build-fix patch. [img]<fileStore.core_Emoticons>/emoticons/smile.png[/img]/emoticons/smile@2x.png 2x" width="20" height="20" />

Last edited by chrono on Sun Aug 03, 2008 1:32 pm, edited 1 time in total.
spacy51
Senior Member
Posts: 371
Joined: Tue Mar 18, 2008 4:59 pm

GBC cheats (GameShark) + compile fixes

Post by spacy51 »

If someone with Linux & SVN-rights could please have a look at this and commit it...

xKiv
Junior Member
Posts: 36
Joined: Fri Mar 21, 2008 9:47 am

GBC cheats (GameShark) + compile fixes

Post by xKiv »

Build, runs GBA rom(s), runs GB rom(s).

Committed.

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

GBC cheats (GameShark) + compile fixes

Post by spacy51 »

Thank you, did you make sure you didn't break LIRC?

xKiv
Junior Member
Posts: 36
Joined: Fri Mar 21, 2008 9:47 am

GBC cheats (GameShark) + compile fixes

Post by xKiv »

I don't have LIRC, so I can't vouch for that working, but the only changes in code for it were

#ifdef WITH_LIRC -> #if WITH_LIRC

and WITH_LIRC is -D'ed to eighter 0 or 1, based on CMakeList's WITH_LIRC

 

I assume you would have to pass -D WITH_LIRC=1 (oslt) to cmake to get lirc support.

martinultima
Junior Member
Posts: 5
Joined: Sun Jul 20, 2008 6:02 pm

GBC cheats (GameShark) + compile fixes

Post by martinultima »

Wow, fast response. [img]<fileStore.core_Emoticons>/emoticons/smile.png[/img]/emoticons/smile@2x.png 2x" width="20" height="20" /> Once I've got my own build environment updated I'll test the latest SVN.

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

GBC cheats (GameShark) + compile fixes

Post by slacker »

cmake files fail for me i cant turn on the lirc support. atm i changed it back to ifdef with_lirc but then it cant be turned off.

 

i can tell you that the lircCheckInput() function is way too low and cannot access some of the functions like sdlReadState() and sdlWriteState()

 

once you move the function and get the cmake files sorted it all should work. im sorry i dont know howto use cmake mayby it is fixed and im just doing it wrong using

cmake --with_lirc=1 . or

cmake -Dwith_lirc=1 .

 

doesn't work for me. nice emulator i have 1 more issue related to sdl detecting 640x480 when i use 1024x768 im guessing this is a sdl problem and not yours im writing a little thing that will use screenwidth and screenheight if defined in the config file. i jsut thought id let you guys know

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

GBC cheats (GameShark) + compile fixes

Post by chrono »

cmake -DWITH_LIRC=1 .

Post Reply