![]() |
|
Dolphin Code: GetTextureDirectory - HiresTextures.cpp - Printable Version +- Dolphin, the GameCube and Wii emulator - Forums (https://forums.dolphin-emu.org) +-- Forum: Dolphin Emulator Discussion and Support (https://forums.dolphin-emu.org/Forum-dolphin-emulator-discussion-and-support) +--- Forum: Development Discussion (https://forums.dolphin-emu.org/Forum-development-discussion) +--- Thread: Dolphin Code: GetTextureDirectory - HiresTextures.cpp (/Thread-dolphin-code-gettexturedirectory-hirestextures-cpp) |
Dolphin Code: GetTextureDirectory - HiresTextures.cpp - Admentus - 11-09-2018 Soo... I am kinda new with writing C++ code and stuff. But I wanted it to give it a try anyway. A while ago I mentioned this feature request: https://forums.dolphin-emu.org/Thread-feature-request-custom-textures-folder-for-multiple-games. As proof of concept, I managed to draft up the following code. It is probably horrible. I kinda managed to adjust the GetTextureDirectory method within the HiresTextures.cpp code file. The idea is that you can place a .txt file naming it with a Game ID of the game you want to load. The text file should contain a single line of text containing the Game ID the loaded game should refer to for loading the texture pack. That's basically it. The goal is to get rid of symbolic links... I hope? I would love that take this further on GitHub, Pull Requests and such for example. Except... I don't have any idea how to idea how to do that. So I leave it in this thread for now. UPDATED Code: std::string HiresTexture::GetTextureDirectory(const std::string& game_id)RE: Dolphin Code: GetTextureDirectory - HiresTextures.cpp - Admentus - 11-10-2018 Wow... I think I finally did it? Please don't be too harsh on me. ![]() https://github.com/dolphin-emu/dolphin/pull/7556 I am really a novice here, but I love to learn and improve myself. Perhaps my idea just sucks, that's OK too. At least I learned quite a lot by going through the process itself. I used GitHub a few time previously to showcase my academic works individually. Ohh yeah, my GitHub name refers me as DevRobDev.... And Admentus was already taken. Sooo... |