bl4ck
bl4ck
CC#
Created by bl4ck on 3/17/2024 in #help
Path.Combine says "Illegal character in path"
Nevermind, got it it was a newline 😶
9 replies
CC#
Created by bl4ck on 3/17/2024 in #help
Path.Combine says "Illegal character in path"
Well, this is pretty much the code that throws the error, every file-related operation does it as well
if (!File.Exists(Path.Combine(openedCampaignFolder, dddwetgergtrt)))
{
File.Copy(Path.Combine(Application.persistentDataPath, "Levels", dddwetgergtrt),
Path.Combine(openedCampaignFolder, dddwetgergtrt)); //C:\Users\itsbl\AppData\Local\Temp\w8k55zzl.702\Untitled (143).level
}
if (!File.Exists(Path.Combine(openedCampaignFolder, dddwetgergtrt)))
{
File.Copy(Path.Combine(Application.persistentDataPath, "Levels", dddwetgergtrt),
Path.Combine(openedCampaignFolder, dddwetgergtrt)); //C:\Users\itsbl\AppData\Local\Temp\w8k55zzl.702\Untitled (143).level
}
9 replies
CC#
Created by bl4ck on 3/17/2024 in #help
Path.Combine says "Illegal character in path"
well there isn't anything to @ since it's like this
Path.Combine(Application.persistentDataPath, "Levels", dddwetgergtrt)
Path.Combine(Application.persistentDataPath, "Levels", dddwetgergtrt)
9 replies
CC#
Created by bl4ck on 3/9/2024 in #help
Can't use | operator in case?
interesting
8 replies
CC#
Created by bl4ck on 3/9/2024 in #help
Can't use | operator in case?
ah thanks!
8 replies
CC#
Created by bl4ck on 1/17/2024 in #help
Fastest way to read specific line from string
would that be more efficient?
14 replies
CC#
Created by bl4ck on 1/17/2024 in #help
Fastest way to read specific line from string
it is pretty concerning but works for now
14 replies