forked from mirrors/0ad
Adds UTF-8 support for JavaScript files.
This was SVN commit r11750.
This commit is contained in:
@@ -249,7 +249,7 @@ public:
|
||||
* @param code JS code to execute
|
||||
* @return true on successful compilation and execution; false otherwise
|
||||
*/
|
||||
bool LoadScript(const VfsPath& filename, const std::wstring& code);
|
||||
bool LoadScript(const VfsPath& filename, const std::string& code);
|
||||
|
||||
/**
|
||||
* Load and execute the given script in the global scope.
|
||||
@@ -257,7 +257,7 @@ public:
|
||||
* @param code JS code to execute
|
||||
* @return true on successful compilation and execution; false otherwise
|
||||
*/
|
||||
bool LoadGlobalScript(const VfsPath& filename, const std::wstring& code);
|
||||
bool LoadGlobalScript(const VfsPath& filename, const std::string& code);
|
||||
|
||||
/**
|
||||
* Load and execute the given script in the global scope.
|
||||
|
||||
Reference in New Issue
Block a user