The court in which, by the Constitution and statutes of this State, original jurisdiction in habeas corpus is vested, may entertain in accordance with its rules a proceeding under this chapter in the exercise of its original jurisdiction and in that event this chapter, to the extent applicable, governs the proceeding.
S.C. Code § 17-27-30