Skip to content

Total migration from GLC to GLCS #6

@ZDBioHazard

Description

@ZDBioHazard

In issue #4, @lano1106 mentioned wanting to move toward renaming everything from GLC to GLCS, and mentioned something about going crazy, which got me thinking. 😉

Just for the sake of my curiosity, I ran a bit of sed over the codebase, converting everything which hasn't already been converted to GLCS, everywhere.

grep --exclude-dir=.git -lre '\(glc\)\([^s]\|$\)' | xargs sed -i 's/\(glc\)\([^s]\|$\)/glcs\2/g'
grep --exclude-dir=.git -lre '\(GLC\)\([^S]\|$\)' | xargs sed -i 's/\(GLC\)\([^S]\|$\)/GLCS\2/g'
git mv src/glc{,s}
git mv src/glcs/common/glc{,s}.h
git mv scripts/glc{,s}-build.sh
echo "$(git diff -U0 | grep '^+[^+]' | wc -l) changed lines."

(If you try running that for yourself, please make a backup of your .git directory first, just in case --exclude-dir doesn't work for some reason)

To my surprise, everything compiles and recording/playback seems to work fine. It doesn't even create any new compiler warnings. Cool.

Changing everything affects about 2,400 lines (13,000 lines of -U3 diff), which would need to be looked over so things like comments or copyright notices in reference to the original GLC could be fixed. I wouldn't mind spending the time to go though it if you're interested.

Note: The GLCS_SIGNATURE value is not changed from 0x00434c47, so *.glc files still use the same format, though new files would be created with the *.glcs extension, which of course can be easily be reverted.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions