Quantcast
Channel: Shadiku Izayoi » Development
Viewing all articles
Browse latest Browse all 12

Content layering

$
0
0

Today I implemented this cool feature that has been on my mind for years.

When I used to use standalone Counter-Strike: Source a lot because I would be offline frequently or whatever I would always enjoy the weapon mods, skins, sounds and all that stuff. The problem of course was you kind of had to backup your current contents before hand if you ever wanted to go back, fortunately the Steam version sort of just has the GCF version and then the users folder layered on top.

That’s basically what I’ve done, my launcher now searches for a folder that contains anything the user wants to replace the game content with. The program will recursively scan the directory for files, move the stock file to a backup folder then move the modified file into the game folder. After that it will launch the game and wait for it to close, when it closes it would then move the modified files back to their original directory and move the stock files back to the game folder.

Pretty nice if you ask me, but of course I’d say that.


Viewing all articles
Browse latest Browse all 12

Trending Articles