JDSherbert / Sherbert-Engine

Custom game engine written in C++ and implementing various middleware.
MIT License
4 stars 3 forks source link

Solution 1. Imgui Default Path change #33

Closed VerzatileDev closed 7 months ago

VerzatileDev commented 7 months ago

Problem

Problem that imgui.ini and imgui.log files are generated in project files (ProjDir), which should be in " Config/imgui.ini ".. etc within the " SolutionDir "

Solution

Makes a directory named " config " in solution directory from root.

Additionally checks if it exists.

Then assign a new Default location to save the Imgui.ini file.

The following should be changed later where the folders are generated beforehand and other areas should be in this instance tested..

Solves

https://github.com/JDSherbert/Sherbert-Engine/issues/27

Needs considerations and changes.

VerzatileDev commented 7 months ago

Something to keep a not of in the future is to reference back to that the project utilizes Visual studio 17 Language standard with the following required it insists that the directory is created as shown in the changes provided with a null parameter.

image

In the future this could be changed and or referenced to only use create directory for version 17 https://en.cppreference.com/w/cpp/filesystem/create_directory in newer versions it would be more simplfied, but does not affect the performance and is more fool proof with checks to avoid future compile or runtime errors

VerzatileDev commented 7 months ago

Comment should be changed as well to follow up the changes taken to the directory pathing!

https://github.com/JDSherbert/Sherbert-Engine/blob/429d7bc8d2d99bc2eae490885177a8c464c15e56/SherbertEngine/Source/Imgui/imgui.h#L2000