Jump to content

Editor writing bytes instead of a String


reepblue
 Share

Go to solution Solved by Josh,

Recommended Posts

Caught my eye when looking at the Ultra.json file for my new project. You probably would have noticed it eventually but here's an example of an Ultra.json file that was loaded into the editor.

{
	"currentPath": [
		69,
		58,
		47,
		82,
		101,
		112,
		111,
		115,
		47,
		85,
		108,
		116,
		114,
		97,
		69,
		110,
		103,
		105,
		110,
		101,
		47,
		71,
		97,
		109,
		101
	],
	"project": {
		"name": [
			71,
			97,
			109,
			101
		],
		"templates": [
			"C++",
			"Common"
		],
		"validationLayers": {
			"debug": [
				"VK_LAYER_KHRONOS_validation"
			]
		}
	}
}

 

Cyclone - Ultra Game System - Component PreprocessorTex2TGA - Darkness Awaits Template (Leadwerks)

If you like my work, consider supporting me on Patreon!

Link to comment
Share on other sites

  • 1 month later...
  • Solution

This is one way of storing a wide string. I have switched the editor over to store UTF-8 strings, but the client may still use character arrays like above. I think I'll eventually move that over to UTF8 as well, but it's okay as long as its working.

My job is to make tools you love, with the features you want, and performance you can't live without.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...