Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add properties for accessing paths #292

Closed
sionzee opened this issue Nov 22, 2018 · 1 comment
Closed

Add properties for accessing paths #292

sionzee opened this issue Nov 22, 2018 · 1 comment
Labels
area-Core Issues related to SampSharp.Core feature
Milestone

Comments

@sionzee
Copy link
Contributor

sionzee commented Nov 22, 2018

By data management I mean a class where will be Paths to some directories. E.G.: (ServerRootDirectory, GameModeDataDirectory?)

Through Assembly you can access where is console application started but if you put your application to something like /home/deploy/gamemode and server to /home/servers/samp you have to write your own configuration for locating the server directory or hard-code write it into code.

To me, the best way would be to add path to Server root directory.

Instead of calculating path you can then easily write Path.Combine(Assets.ServerRootDir, "Data")...

@ikkentim ikkentim added feature area-Core Issues related to SampSharp.Core labels Nov 22, 2018
@ikkentim ikkentim added this to the 0.8.0 milestone Nov 22, 2018
@ikkentim
Copy link
Owner

Good idea, will implement this soon.

@ikkentim ikkentim changed the title Implement a data management Add properties for accessing paths Nov 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-Core Issues related to SampSharp.Core feature
Projects
None yet
Development

No branches or pull requests

2 participants