Am I missing something here? Why are you adding this to each line? For gamelauncher, you simply put this in the mame.cfg file. Of course, this will affect ALL your roms (not sure this is what you'd really want, but since it is what you stated...)
# Global options passed to emulator, i.e. -sound 1
global_options = -resolution 400 256
I was a little vauge in my post - my bad. If I did that everygame will play at 400x256 - which does not make sense of course. It's known that mame does not always pick the best possible resolution for any given game.
I used resolution.ini & orientation.ini from mame32 to create two new files. One file has all the horizontal games under each of they're respective screen resolutions and another for verticals. Then I killed a few hours testing each screen resolution (for both vertical & horizontal games) with arcade vga to find the best resulting display in my cabinet. Note that I use a horizontal monitor to play verticals. All that info then got pasted into the .cfg files and I used "use_rom_file = yes" for this to work but now all my different .cfg files have every single game and what res to play it at. Looks something like this under the Per ROM options:
# Native Horizontal Resolution [384x224]
3wonders = -resolution 392x240
3wonderu = -resolution 392x240
area88 = -resolution 392x240
armwar = -resolution 392x240
armwara = -resolution 392x240
armwaru = -resolution 392x240
# Native Horizontal Resolution [256x224]
280zzzap = -resolution 256x240
40love = -resolution 256x240
4dwarrio = -resolution 256x240
4enraya = -resolution 256x240
64streej = -resolution 256x240
64street = -resolution 256x240
airbustj = -resolution 256x240
# Native Vertical Resolution [224x256]
005 = -resolution 352x256
1942 = -resolution 352x256
1942a = -resolution 352x256
1942b = -resolution 352x256
1943 = -resolution 352x256
1943j = -resolution 352x256
Makes life easier later on. A few here 'n there look better with -hws enabled so I added that accordingly. I noticed that -hws looks really good when used with games that originally had a higher resolution. If I end up finding a better screen res for AGVA to use for say - the 224x256 heading; I look in one place and change them with a simple search & replace. Sounds like alot of work but I'd rather get it out of the way once and forget it.
The only global options I use is "-ctrlr custom" and the rest of the options are in mame.ini
ps: I finally figured out which is the right MAME to use

and the real slim shady has to have the "400x256" run while the evil mame32 wants "400 256" for example.