mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-21 07:53:53 +00:00
My own fix to make it hackily compile
This commit is contained in:
parent
1363e86828
commit
bffbfff41c
2 changed files with 18 additions and 2 deletions
|
@ -62,3 +62,19 @@ int main(int argc, char *argv[])
|
||||||
return returnValue;
|
return returnValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include <windows.h>
|
||||||
|
|
||||||
|
#ifdef __GNUC__
|
||||||
|
#define _stdcall __attribute__((stdcall))
|
||||||
|
#endif
|
||||||
|
|
||||||
|
int _stdcall
|
||||||
|
WinMain (struct HINSTANCE__ *hInstance,
|
||||||
|
struct HINSTANCE__ *hPrevInstance,
|
||||||
|
char *lpszCmdLine,
|
||||||
|
int nCmdShow)
|
||||||
|
{
|
||||||
|
return main (__argc, __argv);
|
||||||
|
}
|
|
@ -61,7 +61,7 @@ void CSVDoc::AdjusterWidget::setName (const QString& name, bool addon)
|
||||||
if (path.parent_path().string()==mLocalData.string())
|
if (path.parent_path().string()==mLocalData.string())
|
||||||
{
|
{
|
||||||
// path already points to the local data directory
|
// path already points to the local data directory
|
||||||
message = QString::fromUtf8 (("Will be saved as: " + path.native()).c_str());
|
message = QString::fromUtf8 (("Will be saved as: " + path.string()).c_str());
|
||||||
mResultPath = path;
|
mResultPath = path;
|
||||||
mValid = true;
|
mValid = true;
|
||||||
}
|
}
|
||||||
|
@ -70,7 +70,7 @@ void CSVDoc::AdjusterWidget::setName (const QString& name, bool addon)
|
||||||
// path points somewhere else or is a leaf name.
|
// path points somewhere else or is a leaf name.
|
||||||
path = mLocalData / path.filename();
|
path = mLocalData / path.filename();
|
||||||
|
|
||||||
message = QString::fromUtf8 (("Will be saved as: " + path.native()).c_str());
|
message = QString::fromUtf8 (("Will be saved as: " + path.string()).c_str());
|
||||||
mResultPath = path;
|
mResultPath = path;
|
||||||
mValid = true;
|
mValid = true;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue