Changing C4.exe Icon and Name
From C4 Engine Wiki
Here are the complete steps to change the icon and the name of the executable in Visual C++ 2008 Express Edition.
To change the icon:
- Edit the file
EngineCode/C4ResWindows.rcin a text editor. If you try to open this file in the express edition of Visual Studio, it will cause problems, so open it with something else like WordPad. (Alternatively, change the extension to.txttemporarily and edit it in Visual Studio.) The is a line at the top of the file that looks like this:
1 ICON "C4Icon.ico"
- Change the name "C4Icon.ico" to that of your custom icon file. You must continue to use the
.icoformat.
- Your icon file should reside in the
EngineCodedirectory. There is no need to add the.icofile itself to your project.
To change the name of the "C4.exe" executable:
- In the C4 Engine solution, right-click on the Engine project, and choose Properties.
- In the Engine Property Pages dialog, under Configuration Properties, in the Linker group, select the General sub-group.
- Modify the name of the Output File from "C4.exe", to "Foo.exe", where "Foo" is the new name of your executable. If your new name contains more than one word, add double quotes to the start and end of the entire value.
- Make the same change for both the "Debug" and "Optimized" targets by switching between them in the Configuration pop-up menu.
- Right-click on each of the other projects (Game, T_WorldEditor, T_TextureViewer, etc.), open up the Property Pages dialog, and in the Linker group, choose the Input sub-group, and change the reference to "C4.lib" to the new name of your executable, but with the ".lib" extension ("Foo.lib")
- If your executable name is more than one word, add quotes to the parameter passed to xcopy, as set in the Engine Property Pages dialog, under Configuration Properties, in the Custom Build Step group, under the General sub-group:
xcopy "$(Outdir)\$(TargetFileName)" ..\..\.. /Y
- Optionally, change the value of the APPLICATION_NAME macro in "C4Main.cpp" from "C4 Engine" to the name of your application.
Now build your solution, and you should be good to go.
