mirror of
https://github.com/AdAstra-LD/DS-Pokemon-Rom-Editor.git
synced 2026-10-27 19:46:22 -05:00
Minor Script Editor error detection fixes
This commit is contained in:
@@ -109,7 +109,7 @@ namespace DSPRE.ROMFiles {
|
||||
id = ushort.Parse(nameParts[0], NumberStyles.HexNumber, CultureInfo.InvariantCulture);
|
||||
} catch {
|
||||
string details;
|
||||
if (wholeLine.Contains('@') && wholeLine.Contains('#')) {
|
||||
if (wholeLine.Contains(':') && wholeLine.ContainsNumber()) {
|
||||
details = "This probably means you forgot to \"End\" the Script or Function above it.";
|
||||
details += Environment.NewLine + "Please, also note that only Functions can be terminated\nwith \"Return\".";
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user