1
0
forked from mirrors/0ad

Adds UTF-8 support for JavaScript files.

This was SVN commit r11750.
This commit is contained in:
historic_bruno
2012-05-04 21:48:46 +00:00
parent a5713c1264
commit 32d2927449
11 changed files with 26 additions and 31 deletions
+2 -2
View File
@@ -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.