Post Reply 
 
Thread Rating:
  • 21 Votes - 2.57 Average
  • 1
  • 2
  • 3
  • 4
  • 5
VBA Colour Edition additions
Author Message
mudlord Offline
not banned.
*****

Posts: 507
Joined: Feb 2009
Reputation: 5
Post: #1
VBA Colour Edition additions
I started to look into adding support for Bruni's GB colorization mods for VBA-M. I did some initial checking of the core work involved:

gb.cpp - changes
gbgfx.cpp - changes
gbglobals.h - changes
VBA.cpp - changes

basically those are the files, from my initial checks, of what Bruni changed, since he didn't make a diff. Which would have been helpful.

Netherless, I am interested in this. However, I am concerned about cross platform support, since I don't want to break any compatibility with the Linux/Mac OSX ports. So, I am giving this a opportunity for discussion before I try to whip up a build with this new functionality.
06-16-2008 10:30 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Squall Leonhart Offline
The Admin with the Gunblade
*******

Posts: 1,491
Joined: Mar 2008
Reputation: 16
Post: #2
RE: VBA Colour Edition additions
well, it should be possible to integrate this into all the ports, an cmd switch can be created for the sdl port, and im sure the GTK port can have something done with it.

in the end it all comes down to, the different port devs wanting to keep as inline as possible, with the features.

I'm sure we can work a cross platform solution out.

06-17-2008 02:34 AM
Visit this user's website Find all posts by this user Quote this message in a reply
bgK Offline
VBA-M Contributor
*****

Posts: 101
Joined: Apr 2008
Reputation: 1
Post: #3
RE: VBA Colour Edition additions
The changes in the gb* files should not cause any problems, as long as you don't use Windows specific libraries.
VBA.cpp is a Windows specific file thus similar changes have to be made to SDL.cpp and the GTK files.
I suppose the sprite hash <-> palette definition file is loaded from there. It would be nice to factor out the code and make it portable so that it can be reused by all of the ports.

A lot of features are reimplemented in all the ports like the config file parsing, the filter management code, audio output, ...
It would be nice it there was a place in the directory structure where we could put shared code.
Speaking about the directory structure, there is a lot of room for improvements here.
Filters should be in a separate folder. gb_apu is shared between the GB and GBA cores so why is it in the GB folder ?
Some of the GBA specific files are in the agb (why agb, it's called GBA everywhere else) folder but not all ...
I'd like to make these changes but I have no win32 build environment so that would break the build for the win32 port.

Also having a clear separation between the emulation cores and the frontends would be great.
Basically an abstract class that the emulation code uses and the frontends implement would be perfect (Moving all the functions and variables definitions the frontends have to implement in System.h would be a good start). ScummVM has a very nice way of doing it, check their common/system.h file.
(This post was last modified: 06-17-2008 04:24 AM by bgK.)
06-17-2008 04:22 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)

 Quick Theme: