mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-21 05:09:46 -06:00
fix config file lookup. fixes #717
This commit is contained in:
@ -77,7 +77,7 @@ u8 PacketBuffer[2048];
|
|||||||
|
|
||||||
void Init(int argc, char** argv)
|
void Init(int argc, char** argv)
|
||||||
{
|
{
|
||||||
#if defined(__WIN32__) || defined(UNIX_PORTABLE)
|
#if defined(__WIN32__) || defined(PORTABLE)
|
||||||
if (argc > 0 && strlen(argv[0]) > 0)
|
if (argc > 0 && strlen(argv[0]) > 0)
|
||||||
{
|
{
|
||||||
int len = strlen(argv[0]);
|
int len = strlen(argv[0]);
|
||||||
@ -167,7 +167,7 @@ FILE* OpenLocalFile(const char* path, const char* mode)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
#ifdef PORTABLE
|
#ifdef PORTABLE
|
||||||
fullpath = path;
|
fullpath = QString(EmuDirectory) + QDir::separator() + path;
|
||||||
#else
|
#else
|
||||||
// Check user configuration directory
|
// Check user configuration directory
|
||||||
QDir config(QStandardPaths::writableLocation(QStandardPaths::GenericConfigLocation));
|
QDir config(QStandardPaths::writableLocation(QStandardPaths::GenericConfigLocation));
|
||||||
|
Reference in New Issue
Block a user