Points of Required Attention™
Please chime in on a proposed restructuring of the ROM hacking sections.
Views: 88,490,518
Main | FAQ | Uploader | IRC chat | Radio | Memberlist | Active users | Latest posts | Calendar | Stats | Online users | Search 04-27-24 01:22 AM
Guest: Register | Login

0 users currently in ROM Hacking Related Releases | 1 guest

Main - ROM Hacking Related Releases - Header Magic v1.00 New thread | New reply


Kawa
Posted on 07-09-11 10:45 AM Link | Quote | ID: 144749


CHIKKN NI A BAAZZKIT!!!
80's Cheerilee is best pony
Level: 138

Posts: 4910/5344
EXP: 30946354
Next: 716627

Since: 02-20-07
From: The Netherlands

Last post: 4499 days
Last view: 2634 days
Copypasting from http://board.byuu.org/viewtopic.php?f=9&t=1804:

http://byuusan.kuro-hitsuji.net/solar-magic/sm100.zip

Solar Magic is a launcher that extends Lunar Magic to fully support headerless ROMs.

Solar Magic
Version 1.00
Author: byuu
Release date: 2011-07-09

About:
The original Lunar Magic application requires a header to be appended before it can edit the files.
By using Solar Magic, headerless ROMs can be opened and edited directly, without the need for a header to ever be appended.
Unlike simple batch scripts, Solar Magic will not simply create hidden copies of the file.
It truly extends Lunar Magic to seamlessly support headerless ROMs.

Support:
Permission was granted by FuSoYa to make this application.
However, there is absolutely no support provided by FuSoYa for this application.
Please do not contact FuSoYa about Solar Magic.

[bTechnical details:
Solar Magic.exe is a launcher application. It will load in Lunar Magic.dll as a new debuggee process.
It will then overwrite the program entry point to perform a DLL injection for Solar Magic.dll.
Once Solar Magic.dll is loaded into the process, it will hook all file access functions from the process' copy of kernel32.
The original entry point for Lunar Magic will then be restored, and the program will be allowed to run normally.
Command-line arguments are forwarded along, so drag-and-drop still works seamlessly.
When Lunar Magic attempts to work with SNES ROM images, Solar Magic will intervene.
If it detects a headerless ROM, it will tell Lunar Magic that there is indeed a header, and adjust the ROM offsets to compensate.
If it detects a headered ROM, operation will be identical to the standard Lunar Magic.
The entire process is 100% seamless and transparent. Absolutely no modifications have been made to the Lunar Magic binary.
The Lunar Magic binary was simply renamed to a DLL so that it is not accidentally launched instead of Solar Magic.

Extensibility:
Full source code is provided for reference.
Both previous and future versions of Lunar Magic should be fully compatible with Solar Magic.
In fact, the technique is easily extensive to virtually any Windows application that does not support headerless ROMs.

____________________
Wife make lunch - Shampoo
Opera - give it a spin
Spare some of your free time?
<GreyMaria> I walked around the Lake so many goddamn times that my sex drive was brutally murdered
Kawa rocks — byuu

blackhole89
Posted on 07-09-11 02:25 PM Link | Quote | ID: 144751


The Guardian
Moloch whose eyes are a thousand blind windows!
Level: 124

Posts: 3731/4196
EXP: 21533976
Next: 302625

Since: 02-19-07
From: Ithaca, NY, US

Last post: 472 days
Last view: 84 days



That seems like such a roundabout way of adding that when presumably, adding support for headerless ROMs into the main application hardly would have taken FuSoYa longer than spelling out "permission granted" in an e-mail...

Still, nice. Hack value clearly was there, too.

____________________



Kawa
Posted on 07-09-11 07:58 PM Link | Quote | ID: 144760


CHIKKN NI A BAAZZKIT!!!
80's Cheerilee is best pony
Level: 138

Posts: 4913/5344
EXP: 30946354
Next: 716627

Since: 02-20-07
From: The Netherlands

Last post: 4499 days
Last view: 2634 days
Solar Magic has been renamed Header Magic because of conflicts with Solar Magic Advanced. That'll be all.

____________________
Wife make lunch - Shampoo
Opera - give it a spin
Spare some of your free time?
<GreyMaria> I walked around the Lake so many goddamn times that my sex drive was brutally murdered
Kawa rocks — byuu

Main - ROM Hacking Related Releases - Header Magic v1.00 New thread | New reply

Acmlmboard 2.1+4δ (2023-01-15)
© 2005-2023 Acmlm, blackhole89, Xkeeper et al.

Page rendered in 0.018 seconds. (324KB of memory used)
MySQL - queries: 32, rows: 45/46, time: 0.014 seconds.