Explorar o código

Added missing CE_EXPORTs and compilation fixes for VisualStudio

Dexter89 %!s(int64=12) %!d(string=hai) anos
pai
achega
b1041de838

+ 1 - 1
engine/core/filesystem/DiskFilesystem.h

@@ -38,7 +38,7 @@ namespace crown
 /// to its absolute counterpart based on the file source's root path.
 /// Accessing files using absolute path directly is also possible,
 /// but platform-specific and thus generally not recommended.
-class DiskFilesystem : public Filesystem
+class CE_EXPORT  DiskFilesystem : public Filesystem
 {
 public:
 

+ 2 - 2
engine/core/json/JSONParser.h

@@ -39,7 +39,7 @@ class DynamicString;
 /// Represents a JSON element.
 /// The objects of this class are valid until the parser
 /// which has generated them, will exist.
-class JSONElement
+class CE_EXPORT JSONElement
 {
 public:
 
@@ -158,7 +158,7 @@ private:
 };
 
 /// Parses JSON documents.
-class JSONParser
+class CE_EXPORT JSONParser
 {
 public:
 

+ 3 - 3
engine/os/win/main.cpp

@@ -429,7 +429,7 @@ public:
 		OsEvent event;
 		do
 		{
-			m_queue.pop_event(&event);
+			m_queue.pop_event(event);
 
 			if (event.type != OsEvent::NONE)
 			{
@@ -841,7 +841,7 @@ public:
 			DynamicString boot;
 			root.key("boot").to_string(boot);
 
-			string::strncpy(m_boot_file, boot, (boot.length() > MAX_PATH_LENGTH) ? MAX_PATH_LENGTH : boot.length() + 1);
+			string::strncpy(m_boot_file, boot.c_str(), (boot.length() > MAX_PATH_LENGTH) ? MAX_PATH_LENGTH : boot.length() + 1);
 		}
 
 		// Window width
@@ -914,4 +914,4 @@ int main(int argc, char** argv)
 	shutdown();
 
 	return ret;
-}
+}