mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-04 02:41:19 +00:00
Fixed windows issues + one minor optimization on to_utf8
This commit is contained in:
parent
358e1ca5a5
commit
38ad2d98f9
@ -926,10 +926,10 @@ int update_arg(void *field, char **orig_field,
|
||||
const char *long_opt, char short_opt,
|
||||
const char *additional_error)
|
||||
{
|
||||
FIX_UNUSED (field);
|
||||
char *stop_char = 0;
|
||||
const char *val = value;
|
||||
int found;
|
||||
FIX_UNUSED (field);
|
||||
|
||||
stop_char = 0;
|
||||
found = 0;
|
||||
|
@ -9,7 +9,7 @@
|
||||
|
||||
namespace ESMS
|
||||
{
|
||||
class ESMStore;
|
||||
struct ESMStore;
|
||||
}
|
||||
|
||||
namespace MWGui
|
||||
|
@ -8,6 +8,7 @@
|
||||
#include <cctype>
|
||||
#include <assert.h>
|
||||
#include <stdexcept>
|
||||
#include <iterator>
|
||||
|
||||
namespace ESMS
|
||||
{
|
||||
|
@ -39,9 +39,11 @@
|
||||
// Generated tables
|
||||
#include "tables_gen.hpp"
|
||||
|
||||
// Shared global buffers, we love you.
|
||||
static std::vector<char> buf;
|
||||
static std::vector<char> output;
|
||||
// Shared global buffers, we love you. These initial sizes are large
|
||||
// enough to hold the largest books in Morrowind.esm, but we will
|
||||
// resize automaticall if necessary.
|
||||
static std::vector<char> buf (50*1024);
|
||||
static std::vector<char> output (50*1024);
|
||||
static int size;
|
||||
|
||||
// Make sure the given vector is large enough for 'size' bytes,
|
||||
|
Loading…
Reference in New Issue
Block a user