mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2025-10-15 02:51:20 +00:00
Little path correction for win32, this repairs screenshot and frame dumping functions.
This commit is contained in:
parent
d903e74bf6
commit
e6e33f2f9d
4 changed files with 80 additions and 15 deletions
|
@ -184,14 +184,13 @@ DSQ::DSQ(std::string fileSystem) : Core(fileSystem, LR_MAX, APPNAME, PARTICLE_AM
|
|||
Linux_CopyTree(core->adjustFilenameCase("_mods").c_str(), core->adjustFilenameCase(fn).c_str());
|
||||
#endif
|
||||
|
||||
|
||||
#if defined(BBGE_BUILD_UNIX)
|
||||
std::string p1 = getUserDataFolder();
|
||||
std::string p2 = getUserDataFolder() + "/save";
|
||||
#if defined(BBGE_BUILD_UNIX)
|
||||
mkdir(p1.c_str(), S_IRWXU);
|
||||
mkdir(p2.c_str(), S_IRWXU);
|
||||
|
||||
//debugLogPath = ;
|
||||
#elif defined(BBGE_BUILD_WINDOWS)
|
||||
CreateDirectoryA(p2.c_str(), NULL);
|
||||
#endif
|
||||
|
||||
difficulty = DIFF_NORMAL;
|
||||
|
@ -4918,11 +4917,7 @@ void DSQ::clearEntities()
|
|||
|
||||
std::string DSQ::getSaveDirectory()
|
||||
{
|
||||
#if defined(BBGE_BUILD_WINDOWS)
|
||||
return "save";
|
||||
#elif defined(BBGE_BUILD_UNIX)
|
||||
return getUserDataFolder() + "/save";
|
||||
#endif
|
||||
}
|
||||
|
||||
void DSQ::spawnParticleEffect(const std::string &name, Vector position, float rotz, float t, int layer, float follow)
|
||||
|
|
|
@ -21,7 +21,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|||
#include "DSQ.h"
|
||||
#include "Game.h"
|
||||
|
||||
std::string baseModPath = "_mods/";
|
||||
static std::string baseModPath = "./_mods/";
|
||||
|
||||
void refreshBaseModPath()
|
||||
{
|
||||
|
|
|
@ -56,11 +56,7 @@ void ModSelector::refreshTexture()
|
|||
if (e)
|
||||
{
|
||||
std::string texToLoad = e->path + "/" + "mod-icon";
|
||||
#if defined(BBGE_BUILD_UNIX)
|
||||
texToLoad = dsq->getUserDataFolder() + "/_mods/" + texToLoad;
|
||||
#else
|
||||
texToLoad = "./_mods/" + texToLoad;
|
||||
#endif
|
||||
texToLoad = dsq->mod.getBaseModPath() + texToLoad;
|
||||
setTexture(texToLoad);
|
||||
width = 256;
|
||||
height = 256;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue