Author Topic: Getting rid of 'DEFAULT' in Windowed mode  (Read 4695 times)

obesebear

  • *
  • Posts: 1389
    • View Profile
Getting rid of 'DEFAULT' in Windowed mode
« on: 2010-06-08 01:45:50 »
I saw this brought up in a thread somewhere and figured I'd take a whack at it

Proof of concept


All I did was open the .exe with a hex editor and do a search for DEFAULT.   What it finds will be something like DEFAULT.DEFAULT CLASS...

So instead of that I substituted Final Fantasy VII and spaced out the remaining letters. 

DISCLAIMER:  I have never messed with a hex editor before in my life.   This may or may not ruin the .exe, but mine seems to work just fine.

Covarr

  • Covarr-Let
  • Administrator
  • *
  • Posts: 3940
  • Just Covarr. No "n".
    • View Profile
Getting rid of 'DEFAULT' in Windowed mode
« Reply #1 on: 2010-06-08 01:49:50 »
I saw this brought up in a thread somewhere and figured I'd take a whack at it

Proof of concept


All I did was open the .exe with a hex editor and do a search for DEFAULT.   What it finds will be something like DEFAULT.DEFAULT CLASS...

So instead of that I substituted Final Fantasy VII and spaced out the remaining letters. 

DISCLAIMER:  I have never messed with a hex editor before in my life.   This may or may not ruin the .exe, but mine seems to work just fine.
Aali's driver doesn't mind the modified exe?

obesebear

  • *
  • Posts: 1389
    • View Profile
Getting rid of 'DEFAULT' in Windowed mode
« Reply #2 on: 2010-06-08 01:54:25 »
As long as it is kept the same size apparently not.   I also have Dziugo's "ALL YEAH" limit for Tifa, HP/MP extension, and Cait Sith's choose your slots mod applied to it.   No problems so far

DLPB_

  • Banned
  • *
  • Posts: 11006
    • View Profile
Getting rid of 'DEFAULT' in Windowed mode
« Reply #3 on: 2010-06-08 04:03:26 »
yeah a separate patch was also a good idea.  My retranslated exe already uses final fantasy vii text by default :)

nfitc1

  • *
  • Posts: 3013
  • I just don't know what went wrong.
    • View Profile
    • WM/PrC Blog
Re: Getting rid of 'DEFAULT' in Windowed mode
« Reply #4 on: 2010-06-09 13:49:51 »
Your "DEFAULT.DEFAULT CLASS..." are actually two different things. I believe that DEFAULT CLASS is used in the APP.LOG and the first DEFAULT is used as the application title. Those "."s are actually 00 values. That's a string terminator there. So what you ended up doing was make the following changes:

( '\n' is the null terminator)
"DEFAULT\n" becomes "Final Fantasy VII\n"
"DEFAULT CLASS\n" becomes "ntasy VII\n" (Unless you got rid of that S)

Since it's just a string it likely won't make any difference what you change it to as long as you don't try to push things out of the way to make it fit.


I do like the change though. I always thought "DEFAULT" was a stupid and lazy title for them to give it (when you create an application like this it's title always starts as "DEFAULT" as a placeholder until the developer(s) change it).

obesebear

  • *
  • Posts: 1389
    • View Profile
Re: Getting rid of 'DEFAULT' in Windowed mode
« Reply #5 on: 2010-06-09 14:40:49 »
I searched an old app.log, but I don't see 'default' or 'default class' written anywhere in it.   Everything is still at its same address, and so far no troubles.

nfitc1

  • *
  • Posts: 3013
  • I just don't know what went wrong.
    • View Profile
    • WM/PrC Blog
Re: Getting rid of 'DEFAULT' in Windowed mode
« Reply #6 on: 2010-06-09 15:15:35 »
I searched an old app.log, but I don't see 'default' or 'default class' written anywhere in it.   Everything is still at its same address, and so far no troubles.

It may only come up with specific errors, or not at all. I have no idea. Either way it's not likely going to cause any horrible problems. They're just system-related strings after all.

DLPB_

  • Banned
  • *
  • Posts: 11006
    • View Profile
Re: Getting rid of 'DEFAULT' in Windowed mode
« Reply #7 on: 2010-06-09 15:22:01 »
Yeah I was also worried by the class part when I removed it but it doesn't appear to do any damage...well not so far.  However, as Kranmer discovered, Saint managed to place the name string elsewhere and modified his exe, leaving Default Class intact....

Remember though that window mode was never meant to be seen, so they didn't need to give it a name...What we need now is a way to restore the icon ;)

« Last Edit: 2010-06-09 15:25:00 by seif »

Aali

  • *
  • Posts: 1196
    • View Profile
Re: Getting rid of 'DEFAULT' in Windowed mode
« Reply #8 on: 2010-06-10 14:08:55 »
Let me spare you the hexediting and the "hope it wont break anything too bad"-worries. Next version of the custom driver will correct this minor issue, and if I have the time I will look into getting that icon showing too.

I would also like to add that the custom driver will play nice with 99% of whatever you guys can think of doing to the .exe :-P
Wherever feasible I implement changes to the original code by reimplementing whole functions so in the unlikely event that you have made a conflicting change it will simply be ignored.
(and it certainly doesn't care about the size of the file)