Re: change "timeformat_old" from 6 months to 1 year



On Mon, 19 Sep 2016, Mooffie wrote:

On 9/19/16, Mooffie <mooffie gmail com> wrote:

One possibility is to modify MC's source code:

    https://source.midnight-commander.org/S/lib--timefmt.c.html#L133

Change the "6L" (six months) to "12L".

Or you can edit the MC binary directly.

That expression (6 * 30 * 24 * 60 * 60) equals 0x00ed4e00. Use MC's
viewer to edit /usr/bin/mc: press <f4> for hex view. Search for "00 4e
ed 00" (assuming little endian). But it turns out MC's hex search has
a bug: you should tick the "All charsets" and "Case sensitive"
checkboxes first.

... which reminds of how I learned the first pieces of knowledge about hex some 20 years ago: I set out to patch Dune 2 save files to get unlimited spice by replacing the actual value with FF FF (having overheard the conversation in the corridor). Of course, on the first attempt, I did it in ACSII mode and guess what, it didn't work! Later, I've got my hands on hiew, as nc at that time, I think, didn't have a hex editor inbuilt.

Are we seriously THAT old? Sigh...

--
Sincerely yours,
Yury V. Zaytsev


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]