Commit a17da0b1 authored by mythezone's avatar mythezone
Browse files

--(quick update)

parent bb902783
Loading
Loading
Loading
Loading
+7 −2
Changes for GamePackage/GameConfig/config.py: 7 added lines, 2 removed lines.
Original line number Diff line number Diff line
import json,os,sys
import json
import sys
import os
sys.path.append(os.path.abspath('./'))



class Configer:
    def __init__(self,config_path='src/GameConfig/option.json') -> None:
    def __init__(self,config_path='GamePackage/GameConfig/option.json'):
        with open(config_path,'r') as f:
            self.config_json=json.load(f)
            print(self.config_json)
+2 −2
Changes for GamePackage/GameConfig/option.json: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -3,7 +3,7 @@
    "author": "Mythezone",
    "GameEngin": "PyGameEngine",
    "version": "0.0.1",
    "database": "src/GameData/gamedev.db",
    "config":"src/GameConfig/option.json"
    "database": "GamePackage/GameData/gamedev.db",
    "config":"GamePackage/GameConfig/option.json"

}
 No newline at end of file
+219 B

File added.

No diff preview for this file type.

+226 B

File added.

No diff preview for this file type.

Loading