It's legal, but only if you own KotOR, JA, port it YOURSELF and do not redistribute it. The previous ports floating around out there were done by someone who obviously had no idea what they were doing so you get all kinds of tears in the model, dismemberment problems and just bad deformation.